/* ==========================================================================
   Marryfy (جوزني شكراً) - Design System & Stylesheet
   Dominant Palette: Royal Mauve, Soft Lavender, Champagne Gold & Pearlescent White
   Features: Multi-Track Marriage System (Permanent, Fiftyfy, Weekfy) & Advanced Filtering
   ========================================================================== */

:root {
  /* Mauve / Purple Color Scale */
  --mauve-950: #1e0938;
  --mauve-900: #2e1065;
  --mauve-800: #4c1d95;
  --mauve-700: #5b21b6;
  --mauve-600: #6d28d9; /* Primary Brand Accent */
  --mauve-500: #7c3aed; /* Vibrant Mauve */
  --mauve-400: #a78bfa;
  --mauve-300: #c4b5fd;
  --mauve-200: #ddd6fe;
  --mauve-100: #ede9fe;
  --mauve-50:  #f8f5ff;

  /* Luxury Accents */
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-100: #fef3c7;

  /* Track Specific Colors */
  --fiftyfy-cyan: #06b6d4;
  --fiftyfy-teal: #0d9488;
  --fiftyfy-bg: #ecfeff;
  --fiftyfy-border: #a5f3fc;

  --weekfy-amber: #d97706;
  --weekfy-orange: #ea580c;
  --weekfy-bg: #fffbeb;
  --weekfy-border: #fde68a;

  /* Neutrals & Surfaces */
  --bg-page: #faf8fd;
  --bg-card: #ffffff;
  --bg-card-alt: #f6f2fc;
  --text-heading: #1e1b4b;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Borders & Glassmorphism */
  --border-subtle: rgba(109, 40, 217, 0.1);
  --border-glow: rgba(124, 58, 237, 0.28);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-card: rgba(255, 255, 255, 0.95);
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(76, 29, 149, 0.04);
  --shadow-md: 0 10px 30px rgba(76, 29, 149, 0.08);
  --shadow-lg: 0 20px 45px rgba(76, 29, 149, 0.12);
  --shadow-glow: 0 0 35px rgba(124, 58, 237, 0.22);
  --shadow-gold: 0 10px 25px rgba(245, 158, 11, 0.25);
  --shadow-cyan: 0 10px 25px rgba(6, 182, 212, 0.25);

  /* Typography */
  --font-family: 'Alexandria', 'Cairo', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utilities & Typography */
.text-center { text-align: center; }
.text-mauve { color: var(--mauve-600); }
.text-cyan { color: var(--fiftyfy-teal); }
.text-gold { color: var(--gold-600); }
.w-100 { width: 100%; }
.d-none { display: none !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--mauve-700) 0%, var(--mauve-500) 50%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-mauve-gradient {
  background: linear-gradient(135deg, var(--mauve-800) 0%, var(--mauve-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mauve-600) 0%, var(--mauve-500) 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--mauve-700) 0%, var(--mauve-600) 100%);
  box-shadow: 0 12px 26px rgba(109, 40, 217, 0.38);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--mauve-800);
  border: 1.5px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: var(--mauve-50);
  border-color: var(--mauve-400);
  color: var(--mauve-600);
}

.btn-gold-cta {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}
.btn-gold-cta:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #B45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 1rem 2rem;
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-outline-mauve {
  background: var(--mauve-50);
  border: 1.5px solid var(--mauve-200);
  color: var(--mauve-700);
  padding: 0.65rem 1.2rem;
}
.btn-outline-mauve:hover {
  background: var(--mauve-600);
  color: #ffffff;
  border-color: var(--mauve-600);
}

.btn-fiftyfy-cta {
  background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: var(--shadow-cyan);
  padding: 0.75rem 1.2rem;
  border-radius: 9999px;
  border: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.btn-fiftyfy-cta:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
  transform: translateY(-2px);
}

.btn-weekfy-cta {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
  padding: 0.75rem 1.2rem;
  border-radius: 9999px;
  border: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.btn-weekfy-cta:hover {
  background: linear-gradient(135deg, #b45309 0%, #c2410c 100%);
  transform: translateY(-2px);
}

/* Section Header & Pills */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-pill {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  background: var(--mauve-100);
  color: var(--mauve-700);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.section-desc {
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.top-announcement {
  background: linear-gradient(90deg, var(--mauve-900) 0%, var(--mauve-700) 50%, var(--mauve-800) 100%);
  color: #ffffff;
  padding: 0.55rem 0;
  font-size: 0.88rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.badge-pill {
  background: var(--gold-500);
  color: #1e1b4b;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.announcement-link {
  color: var(--mauve-200);
  font-weight: 600;
  text-decoration: underline;
}
.announcement-link:hover {
  color: #ffffff;
}

.site-ad-banner {
  position: relative;
  z-index: 1001;
  width: 100%;
  min-height: 52px;
  padding: 0.4rem 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f6fb;
  border-bottom: 1px solid var(--mauve-100);
}

.site-ad-banner-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1120px);
  min-height: 44px;
  overflow: hidden;
  border-radius: 10px;
}

.site-ad-banner-image {
  display: block;
  width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.site-ad-banner-label {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  padding: 0.12rem 0.42rem;
  color: #ffffff;
  background: rgba(35, 20, 48, 0.72);
  border-radius: 5px;
  font-size: 0.66rem;
  line-height: 1.5;
}

.site-ad-banner-close {
  position: absolute;
  top: 50%;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  color: var(--mauve-700);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.site-ad-banner-close:hover { background: var(--mauve-100); }
.site-ad-banner-close i { width: 18px; height: 18px; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

/* Official Marryfy logo — single source of truth: images/logo.png */
.brand-logo-img {
  display: block;
  height: 58px;
  width: auto;
}

/* اللوجو على الخلفيات الداكنة: يحتفظ بألوانه الرسمية داخل لوحة كريمية */
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  background: #faf7ef;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.footer-logo .brand-logo-img { height: 66px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-body);
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-badge {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-weight: 800;
}

.nav-link:hover, .nav-link.active {
  color: var(--mauve-600);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 100%;
  height: 2.5px;
  background: var(--mauve-600);
  border-radius: 9999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.member-notifications[hidden],
.member-notification-link[hidden] { display: none !important; }

.member-notifications {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.member-notification-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(109, 40, 217, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--mauve-800);
  font-size: 0.76rem;
  font-weight: 700;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.member-notification-link:hover {
  background: var(--mauve-50);
  transform: translateY(-1px);
}
.member-notification-link > i {
  width: 18px;
  height: 18px;
}
.member-notification-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #e9e5ef;
  color: #4b3b5c;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}
.member-notification-link.has-new-notifications .member-notification-count {
  background: #dc2626;
  color: #fff;
}
.member-notification-count.notification-count-error {
  background: #b45309;
  color: #fff;
}

@media (max-width: 1000px) {
  .member-notification-label { display: none; }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--mauve-800);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section with Background Image & Clear High-Contrast Right-Side Typography
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.8rem 0 3.8rem;
  overflow: hidden;
  background-color: #170524;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: calc(50% + 2cm) 20%;
  background-repeat: no-repeat;
  color: #ffffff;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-banner-row {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 380px;
  margin-bottom: 2.8rem;
}

.hero-couple-space {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.hero-premium-offer {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 360px);
  padding: 1.2rem 1.25rem;
  margin-top: -2cm;
  border: 1px solid rgba(253, 230, 138, 0.65);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(38, 13, 62, 0.88), rgba(109, 40, 217, 0.76));
  box-shadow: 0 18px 45px rgba(20, 4, 35, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-premium-offer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  background: rgba(253, 230, 138, 0.18);
  color: #fde68a;
}
.hero-premium-offer-icon i { width: 25px; height: 25px; }
.hero-premium-offer p {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-text-content {
  max-width: 660px;
  transform: translateX(-4cm);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 3, 26, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FDE68A;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-title {
  transform: translateX(8cm);
  font-size: 2.85rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.28;
  margin-bottom: 1.3rem;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
}

.hero-gradient-gold {
  background: linear-gradient(135deg, #FFFBEB 0%, #FDE68A 30%, #F59E0B 70%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  display: inline-block;
}

/* Hero accent line: brand mauve/violet → Fiftyfy cyan (harmonizes with site palette) */
.hero-gradient-violet {
  background: linear-gradient(135deg, #F5F3FF 0%, #DDD6FE 30%, #A78BFA 65%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  display: inline-block;
}

.hero-subtitle {
  transform: translateX(8cm);
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 640px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-cta {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.45);
}

.btn-glass-hero {
  background: rgba(15, 3, 26, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.btn-glass-hero:hover {
  background: rgba(109, 40, 217, 0.85);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Quick Match Finder Box with Crisp Frosted Glass */
.quick-finder-card.glass-finder-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 1.8rem 2rem;
  box-shadow: 0 22px 50px rgba(10, 2, 22, 0.4), 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  color: var(--text-heading);
}

.finder-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
/* توحيد الشكل والمقاس: كل البطاقات الأربع بنفس الارتفاع (flex-column)
   والزر السفلي مثبّت في الأسفل — سواء بطاقة بحث أو «صفحتي الشخصية». */
.finder-cards-grid > .mini-finder-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.finder-cards-grid > .mini-finder-card form.mini-finder-form {
  flex: 0 0 auto;
}
.finder-cards-grid .home-my-tags {
  flex: 0 0 auto;
  min-height: 1.6em;
}
.finder-cards-grid .home-my-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}
.finder-cards-grid .mini-finder-more {
  margin-top: auto;
}
.finder-cards-grid .mini-finder-form + .mini-finder-more {
  margin-top: auto;
  padding-top: 0.7rem;
}

.mini-finder-card {
  padding: 1.35rem 1.4rem;
  border-radius: 20px;
}

.mini-finder-card[hidden] {
  display: none;
}

.mini-finder-card .finder-header {
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
}

.mini-finder-card .finder-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.mini-finder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
}

.mini-finder-form .form-group {
  min-width: 0;
}

.mini-finder-form .form-group label {
  font-size: 0.78rem;
}

.mini-finder-form .custom-select {
  padding: 0.65rem 0.7rem;
  font-size: 0.84rem;
}

.mini-finder-form .finder-submit-btn {
  grid-column: 1 / -1;
  padding: 0.65rem 0.8rem;
}

.mini-finder-more {
  width: 100%;
  margin-top: 0.7rem;
}

/* بطاقة «صفحتي الشخصية» في الرئيسية (مشتركة) — فاخرة بلون وردي */
.home-my-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid #f9a8d4;
  background:
    radial-gradient(120% 90% at 100% 0%, #fdf2f8 0%, rgba(255,255,255,0.97) 55%),
    rgba(255,255,255,0.97);
  box-shadow: 0 22px 50px rgba(131,24,67,0.22), 0 2px 10px rgba(0,0,0,0.08);
}
.home-my-card[hidden] { display: none; }
.home-my-shine {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 55%;
  background: linear-gradient(120deg, transparent 30%, rgba(244,114,182,0.18) 50%, transparent 70%);
  pointer-events: none;
}
.home-my-head { position: relative; }
.home-my-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbcfe8, #f472b6);
  color: #831843;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(219,39,119,0.3);
  overflow: hidden;
  flex: 0 0 auto;
}
.home-my-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-my-avatar svg, .home-my-avatar i { width: 22px; height: 22px; }
.home-my-premium {
  font-size: 0.75rem;
  font-weight: 800;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.home-my-track-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  position: relative;
}
.home-my-photo-wrap { margin-bottom: 0.6rem; }
.home-my-photo {
  width: 92px;
  height: 92px;
  border-color: #f9a8d4;
  overflow: hidden;
}
.home-my-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.home-my-photo svg, .home-my-photo i { width: 40px; height: 40px; }
.home-my-meta { text-align: center; font-size: 0.85rem; margin-bottom: 0.5rem; }
.home-my-bio {
  font-size: 0.83rem;
  background: #fdf2f8;
  border: 1px dashed #f9a8d4;
}
.home-my-tags { justify-content: center; margin-bottom: 0.4rem; }
.home-my-tags .p-tag { font-size: 0.72rem; }
.home-my-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 0.7rem;
}
.home-my-actions { display: grid; gap: 0.5rem; position: relative; }
.home-my-actions .finder-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, #db2777, #9d174d);
  border: none;
}
/* بطاقة «صفحتي الشخصية» في الرئيسية (مشترك) — نفس تصميم النساء بلون أزرق فقط */
.home-my-card-male {
  border-color: #a5b4fc;
  background:
    radial-gradient(120% 90% at 100% 0%, #eef2ff 0%, rgba(255,255,255,0.97) 55%),
    rgba(255,255,255,0.97);
  box-shadow: 0 22px 50px rgba(49,46,129,0.22), 0 2px 10px rgba(0,0,0,0.08);
}
.home-my-actions .finder-submit-btn:hover { filter: brightness(1.07); }

.finder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.9rem;
}
.finder-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.finder-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mauve-900);
}
.finder-header small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.finder-icon {
  color: var(--mauve-600);
  width: 24px;
  height: 24px;
}

.btn-open-advanced-trigger {
  background: var(--mauve-50);
  border: 1.5px solid var(--mauve-300);
  color: var(--mauve-700);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-open-advanced-trigger:hover {
  background: var(--mauve-100);
  border-color: var(--mauve-500);
  color: var(--mauve-900);
}
.btn-open-advanced-trigger i { width: 15px; height: 15px; }

.filter-count-badge {
  background: var(--mauve-600);
  color: #ffffff;
  font-size: 0.72rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* 5-Column Finder Form */
.form-row-5 {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 1fr 1.1fr;
  gap: 0.8rem;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.form-group label i {
  width: 15px;
  height: 15px;
  color: var(--mauve-600);
}

.invisible-label {
  visibility: hidden;
}

.custom-select, .custom-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid var(--mauve-200);
  background-color: #ffffff;
  color: var(--text-heading);
  outline: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.custom-select:focus, .custom-input:focus {
  border-color: var(--mauve-600);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.highlight-select {
  border-color: var(--mauve-400);
  background: var(--mauve-50);
  font-weight: 700;
  color: var(--mauve-900);
}

.finder-submit-btn {
  padding: 0.8rem 0.8rem;
  font-size: 0.92rem;
  width: 100%;
}

/* Quick Criteria Chips Bar */
.quick-criteria-bar {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mauve-100);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.criteria-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mauve-800);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.criteria-label i { width: 14px; height: 14px; color: var(--gold-500); }

.criteria-chips-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.criteria-chip {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  color: var(--text-heading);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.criteria-chip:hover {
  border-color: var(--mauve-400);
  background: var(--mauve-100);
}
.criteria-chip.active {
  background: var(--mauve-600);
  color: #ffffff;
  border-color: var(--mauve-600);
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

.criteria-chip.chip-more {
  background: transparent;
  border: 1px dashed var(--mauve-400);
  color: var(--mauve-700);
}
.criteria-chip.chip-more:hover {
  background: var(--mauve-50);
}

.finder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--mauve-200);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
.trust-badge-item i {
  width: 16px;
  height: 16px;
}

/* Hero Visual & Profile Simulation */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.visual-card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.profile-preview-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  border: 1.5px solid var(--mauve-200);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

.animate-float {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.track-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}
.track-fiftyfy {
  background: var(--fiftyfy-bg);
  color: var(--fiftyfy-teal);
  border: 1px solid var(--fiftyfy-border);
}
.track-fiftyfy i { width: 16px; height: 16px; }

.match-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--mauve-100);
  color: var(--mauve-700);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}
.fill-gold { color: var(--gold-500); fill: var(--gold-500); width: 16px; height: 16px; }

.card-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.avatar-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--mauve-500), var(--gold-500));
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.2);
  margin-bottom: 0.8rem;
}
.avatar-ring.ring-fiftyfy {
  background: linear-gradient(135deg, #06b6d4, var(--mauve-500));
}

.avatar-img-sim {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
}

.avatar-silhouette {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mauve-700);
}
.silhouette-icon {
  width: 60px;
  height: 60px;
}

.blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(88, 28, 135, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.25rem;
  transition: opacity var(--transition-normal);
}
.blur-overlay.unblurred {
  opacity: 0;
  pointer-events: none;
}

.toggle-blur-btn {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  color: var(--mauve-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}
.toggle-blur-btn:hover {
  background: var(--mauve-100);
  color: var(--mauve-800);
}
.toggle-blur-btn i { width: 14px; height: 14px; }

.card-info {
  text-align: center;
  margin-bottom: 1.5rem;
}
.profile-alias {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}
.profile-spec {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.profile-spec i { width: 15px; height: 15px; color: var(--mauve-600); }

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.mini-tag {
  background: var(--mauve-50);
  color: var(--mauve-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--mauve-100);
}
.tag-track-highlight {
  background: var(--fiftyfy-bg);
  color: var(--fiftyfy-teal);
  border-color: var(--fiftyfy-border);
  font-weight: 700;
}
.tag-pref {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.75rem;
}
.btn-card-primary {
  background: var(--mauve-600);
  color: #ffffff;
  border: none;
  padding: 0.65rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-card-primary:hover {
  background: var(--mauve-700);
}
.btn-card-secondary {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  color: var(--mauve-700);
  padding: 0.65rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-card-secondary:hover {
  background: var(--mauve-100);
}

/* Floating micro-badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--mauve-200);
  padding: 0.65rem 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  z-index: 10;
}
.floating-badge strong {
  display: block;
  color: var(--text-heading);
}
.floating-badge p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.badge-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mauve-100);
  color: var(--mauve-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-icon-wrap i { width: 18px; height: 18px; }

.badge-guardian {
  bottom: 25px;
  right: -35px;
}
.badge-compatibility {
  top: 40px;
  left: -35px;
}

/* ==========================================================================
   Trust & Statistics Bar
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--mauve-900) 0%, var(--mauve-800) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.stat-box {
  text-align: center;
  padding: 1rem;
  position: relative;
}
.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.promo-stat-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(124, 58, 237, 0.25) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}
.promo-stat-box::after {
  display: none !important;
}

.promo-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #1e1b4b;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.6rem;
}
.promo-badge-pill i { width: 14px; height: 14px; }

.promo-stat-num {
  background: linear-gradient(135deg, #FFFBEB 0%, #FCD34D 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.promo-stat-label {
  color: #FDE68A !important;
  font-weight: 700 !important;
  font-size: 0.96rem !important;
  line-height: 1.5;
}

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  color: var(--gold-400);
}
.stat-icon-wrap i { width: 26px; height: 26px; }

.stat-num {
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--mauve-200);
  font-weight: 500;
}

/* ==========================================================================
   NEW SECTION: Innovative Marriage Tracks (مسارات الزواج)
   ========================================================================== */
.tracks-section {
  background: linear-gradient(180deg, var(--bg-page) 0%, #ffffff 100%);
  padding: 6rem 0;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.track-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 2.4rem 2rem;
  border: 1.5px solid var(--mauve-200);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}
.track-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Permanent Track Card */
.track-card-permanent {
  border-color: var(--mauve-200);
}
.ring-permanent-icon {
  background: linear-gradient(135deg, var(--mauve-100), var(--mauve-50));
  color: var(--mauve-600);
}

/* Fiftyfy Featured Card */
.track-card-fiftyfy {
  border-color: var(--fiftyfy-border);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.12);
}
.featured-badge {
  position: absolute;
  top: -14px;
  right: 2rem;
  background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.ring-fiftyfy-icon {
  background: var(--fiftyfy-bg);
  color: var(--fiftyfy-teal);
}

/* Weekfy Card */
.track-card-weekfy {
  border-color: var(--weekfy-border);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
}
.ring-weekfy-icon {
  background: var(--weekfy-bg);
  color: var(--weekfy-amber);
}

.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.track-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-icon-wrapper i { width: 28px; height: 28px; }

.track-tag-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--mauve-100);
  color: var(--mauve-700);
}
.track-tag-fiftyfy {
  background: var(--fiftyfy-bg);
  color: var(--fiftyfy-teal);
  border: 1px solid var(--fiftyfy-border);
}
.track-tag-weekfy {
  background: var(--weekfy-bg);
  color: var(--weekfy-amber);
  border: 1px solid var(--weekfy-border);
}

.track-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.track-subtitle {
  font-size: 0.9rem;
  color: var(--mauve-600);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.track-description {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.track-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--mauve-200);
}

.t-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-body);
  font-weight: 500;
}
.feat-check {
  width: 18px;
  height: 18px;
  color: var(--mauve-600);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.track-footer {
  margin-top: auto;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-section {
  background: var(--bg-page);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.2rem 1.6rem;
  border: 1px solid var(--mauve-100);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--mauve-300);
}

.step-number {
  position: absolute;
  top: 1.2rem;
  left: 1.4rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--mauve-100);
  line-height: 1;
}

.step-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--mauve-100), var(--mauve-50));
  color: var(--mauve-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.step-icon-box i { width: 30px; height: 30px; }

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.step-highlight {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mauve-700);
  background: var(--mauve-50);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border-right: 3px solid var(--mauve-500);
}

/* ==========================================================================
   Features Section & Interactive Privacy Box
   ========================================================================== */
.features-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--mauve-50) 100%);
}

.features-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.feature-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mauve-100);
  color: var(--mauve-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-item-icon i { width: 24px; height: 24px; }

.feature-item-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}
.feature-item-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.features-interactive-wrap {
  position: relative;
}

.guardian-simulator-card {
  background: #ffffff;
  border: 1.5px solid var(--mauve-200);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(109, 40, 217, 0.08);
  position: relative;
}

.guardian-sim-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--mauve-50);
  border-bottom: 1.5px solid var(--mauve-200);
  padding: 6px;
  gap: 6px;
}

.sim-tab {
  background: none;
  border: none;
  padding: 0.75rem 0.6rem;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}
.sim-tab i { width: 16px; height: 16px; }

.sim-tab.active {
  background: #ffffff;
  color: var(--mauve-700);
  box-shadow: 0 3px 8px rgba(109, 40, 217, 0.12);
}

.sim-view-content {
  padding: 1.8rem 2rem;
}

.sim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--mauve-100);
  margin-bottom: 1.4rem;
}
.sim-card-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
}
.sim-card-header small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.optional-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #bbf7d0;
}

.mb-2 { margin-bottom: 0.9rem; }
.mt-2 { margin-top: 0.9rem; }
.mt-3 { margin-top: 1.2rem; }

/* Auto Credentials Card */
.auto-credentials-card {
  background: linear-gradient(135deg, var(--mauve-50) 0%, #ffffff 100%);
  border: 1.5px solid var(--mauve-200);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-top: 1rem;
}

.cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cred-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mauve-700);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cred-tag i { width: 14px; height: 14px; color: var(--gold-500); }

.btn-refresh-cred {
  background: none;
  border: none;
  color: var(--mauve-600);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: transform var(--transition-fast);
}
.btn-refresh-cred:hover {
  transform: rotate(90deg);
}
.btn-refresh-cred i { width: 16px; height: 16px; }

.cred-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.cred-field {
  background: #ffffff;
  border: 1px solid var(--mauve-200);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}
.cred-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.cred-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cred-value-wrap code {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mauve-900);
  direction: ltr;
}
.btn-copy-cred {
  background: var(--mauve-100);
  border: none;
  color: var(--mauve-700);
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-copy-cred:hover {
  background: var(--mauve-600);
  color: #ffffff;
}
.btn-copy-cred i { width: 14px; height: 14px; }

.cred-notice {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Guardian Dashboard View */
.guardian-header-theme {
  background: linear-gradient(135deg, var(--mauve-100) 0%, var(--mauve-50) 100%);
  padding: 1rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--mauve-200);
}
.guardian-avatar-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.guardian-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--mauve-600);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guardian-avatar-circle i { width: 22px; height: 22px; }

.active-pill-guardian {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

/* Privacy Shield Banner (Crucial Requirement) */
.guardian-privacy-shield-banner {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.shield-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shield-icon-box i { width: 18px; height: 18px; }
.shield-text strong {
  display: block;
  font-size: 0.85rem;
  color: #991b1b;
  margin-bottom: 0.2rem;
}
.shield-text p {
  font-size: 0.78rem;
  color: #7f1d1d;
  margin: 0;
  line-height: 1.5;
}

.guardian-data-section {
  margin-bottom: 1.2rem;
}
.data-section-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.data-section-title i { width: 16px; height: 16px; color: var(--mauve-600); }

.guardian-requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.guardian-request-card {
  background: #ffffff;
  border: 1px solid var(--mauve-200);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}
.req-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.req-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-heading);
}
.badge-verif {
  font-size: 0.72rem;
  color: #059669;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.badge-verif i { width: 12px; height: 12px; }

.req-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.req-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--mauve-100);
}
.req-compat {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--mauve-700);
}
.btn-req-view {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  color: var(--mauve-700);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.btn-req-view:hover {
  background: var(--mauve-600);
  color: #ffffff;
}

.guardian-fav-item {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-heading);
  font-weight: 600;
}
.fav-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Guardian Sub-Account in Registration Modal */
.guardian-reg-card {
  background: var(--mauve-50);
  border: 1.5px solid var(--mauve-200);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
}
.guardian-reg-toggle-row label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-heading);
  font-weight: 700;
}
.guardian-reg-toggle-row input {
  accent-color: var(--mauve-600);
}
.guardian-reg-details {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--mauve-200);
}
.reg-auto-cred-box {
  background: #ffffff;
  border: 1px solid var(--mauve-200);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-top: 0.6rem;
}
.reg-cred-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}
.reg-cred-item strong {
  font-family: monospace;
  color: var(--mauve-700);
  font-size: 0.9rem;
}
.reg-cred-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ==========================================================================
   Profiles Showcase Section
   ========================================================================== */
.profiles-section {
  background: var(--bg-page);
}

.profile-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.profile-tabs {
  display: inline-flex;
  background: #ffffff;
  padding: 0.4rem;
  border-radius: 9999px;
  border: 1px solid var(--mauve-200);
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tab-btn.active {
  background: var(--mauve-600);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.btn-open-filter-modal {
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-open-filter-modal i { width: 16px; height: 16px; }

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.profile-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.8rem;
  border: 1.5px solid var(--mauve-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--mauve-300);
}

.profile-card.is-member-blocked {
  display: none;
}

.cloud-profile-card .p-avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cloud-profile-card .p-meta {
  display: block;
  overflow-wrap: anywhere;
}

.cloud-profile-card .p-footer {
  margin-top: auto;
}

.member-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.member-action-btn {
  flex: 1 1 145px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--mauve-200);
  border-radius: 12px;
  background: var(--mauve-50);
  color: var(--mauve-700);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.member-action-btn:hover,
.member-action-btn.is-active {
  background: var(--mauve-600);
  border-color: var(--mauve-600);
  color: #fff;
}

.member-poke-btn {
  background: var(--gold-100);
  border-color: var(--gold-400);
  color: var(--gold-600);
}

.member-block-btn {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.member-block-btn:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}

.member-blocked-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.8rem;
}

.member-blocked-chip button {
  border: 0;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: #be123c;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
}

.member-poke-btn:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: #fff;
}

.member-chat-btn {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.member-chat-btn:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.member-privacy-board,
.member-inbox-card {
  border: 1px solid var(--mauve-200);
  border-radius: 18px;
  background: var(--mauve-50);
  padding: 1rem;
  margin: 1.25rem 0;
}

.member-inbox-card {
  background: linear-gradient(145deg, #fff, var(--mauve-50));
  border-color: var(--mauve-200);
}

.member-inbox-card > .sp-card-head {
  margin-bottom: 1rem;
}

.member-inbox-card > .sp-card-head h3 {
  color: var(--mauve-900);
}

.member-inbox-box {
  border-radius: 16px;
  padding: 1rem;
  margin-top: 0.8rem;
  border: 1px solid;
}

.member-favorites-box {
  background: linear-gradient(135deg, #fffaf0, #fff);
  border-color: #f6d58a;
}

.member-pokes-box {
  background: linear-gradient(135deg, #f8f5ff, #fff);
  border-color: var(--mauve-200);
}

.member-inbox-box-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.member-inbox-box-head div {
  display: flex;
  flex-direction: column;
}

.member-inbox-box-head strong {
  color: var(--text-heading);
  font-size: 1rem;
}

.member-inbox-box-head small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.member-inbox-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  color: var(--gold-600);
  box-shadow: var(--shadow-sm);
}

.member-pokes-box .member-inbox-icon {
  color: var(--mauve-600);
}

.member-chat-box {
  background: linear-gradient(135deg, #f0fdfa, #fff);
  border-color: #99f6e4;
}

.member-chat-box .member-inbox-icon {
  color: #0f766e;
}

.conversation-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(196, 181, 253, 0.22), transparent 30rem),
    linear-gradient(180deg, #faf8ff 0%, #f8fafc 100%);
}

.conversation-hero {
  padding: 7.5rem 0 2.8rem;
  text-align: center;
}

.conversation-hero .section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.conversation-hero .section-pill svg {
  width: 16px;
  height: 16px;
}

.conversation-list-section {
  padding: 1.5rem 0 5rem;
}

.conversation-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--mauve-200);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.conversation-list-toolbar h2,
.conversation-list-group h2 {
  margin: 0 0 0.35rem;
  color: var(--mauve-900);
  font-size: 1.15rem;
  font-weight: 800;
}

.conversation-list-toolbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.conversation-list-group {
  margin-top: 1.8rem;
}

.conversation-list-group > h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.conversation-list-group > h2 svg {
  width: 20px;
  height: 20px;
  color: var(--mauve-600);
}

.conversation-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 1rem;
}

.conversation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.75);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(221, 214, 254, 0.5), transparent 12rem),
    linear-gradient(145deg, #fff, #fcfbff);
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.08), inset 0 1px 0 #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.conversation-card:hover {
  transform: translateY(-3px);
  border-color: var(--mauve-400);
  box-shadow: 0 18px 36px rgba(76, 29, 149, 0.14), inset 0 1px 0 #fff;
}

.conversation-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.conversation-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #ede9fe, #fce7f3);
  color: var(--mauve-700);
  box-shadow: 0 0 0 1px var(--mauve-200), 0 7px 18px rgba(109, 40, 217, 0.14);
}

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

.conversation-avatar svg {
  width: 28px;
  height: 28px;
}

.conversation-card-person {
  flex: 1;
  min-width: 0;
}

.conversation-card-person h3 {
  margin: 0 0 0.35rem;
  overflow: hidden;
  color: var(--text-heading);
  font-size: 1.02rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-card-person p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
}

.conversation-card-person p span {
  padding: 0.17rem 0.5rem;
  border: 1px solid #ede9fe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--mauve-800);
  font-size: 0.7rem;
  font-weight: 700;
}

.conversation-open-badge,
.conversation-card-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 800;
}

.conversation-open-badge svg,
.conversation-card-status svg {
  width: 14px;
  height: 14px;
}

.conversation-card-bio {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.81rem;
  line-height: 1.8;
}

.conversation-card-latest {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  margin: auto 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(245, 243, 255, 0.8);
  color: var(--text-body);
  font-size: 0.78rem;
}

.conversation-card-latest svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--mauve-600);
}

.conversation-card-latest span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-card-latest time {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.conversation-card-bottom {
  display: flex;
  justify-content: flex-start;
  min-height: 42px;
}

.conversation-card-action {
  gap: 0.45rem;
}

.conversation-card-action svg {
  width: 18px;
  height: 18px;
}

.conversation-request-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.conversation-reject-action {
  color: #b91c1c;
}

.conversation-card-status {
  align-self: center;
  border-color: #fde68a;
  background: #fffbeb;
  color: #a16207;
}

.conversation-card-status.is-rejected {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.conversation-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  text-align: center;
}

.conversation-state-card {
  max-width: 690px;
  margin: 1.5rem auto;
  padding: 2.2rem 1.4rem;
  border: 1px solid var(--mauve-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.conversation-state-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.9rem;
  border-radius: 20px;
  background: var(--mauve-50);
  color: var(--mauve-700);
}

.conversation-state-icon svg {
  width: 30px;
  height: 30px;
}

.conversation-state h2 {
  margin: 0 0 0.5rem;
  color: var(--mauve-900);
  font-size: 1.15rem;
}

.conversation-state p {
  max-width: 500px;
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.conversation-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--mauve-100);
  border-top-color: var(--mauve-600);
  border-radius: 50%;
  animation: conversation-spin 0.8s linear infinite;
}

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

.conversation-main {
  min-height: calc(100vh - 190px);
  padding: 7.2rem 0 4rem;
}

.conversation-shell {
  max-width: 900px;
}

.conversation-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--mauve-700);
  font-size: 0.85rem;
  font-weight: 800;
}

.conversation-back-link svg {
  width: 18px;
  height: 18px;
}

.private-conversation-card {
  overflow: hidden;
  border: 1px solid var(--mauve-200);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(76, 29, 149, 0.1);
}

.private-conversation-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--mauve-100);
  background: linear-gradient(120deg, #fff, #f5f3ff);
}

.private-peer-avatar {
  width: 72px;
  height: 72px;
}

.private-conversation-identity {
  flex: 1;
  min-width: 0;
}

.private-conversation-identity h1 {
  margin: 0.45rem 0 0.3rem;
  color: var(--mauve-900);
  font-size: 1.2rem;
}

.private-conversation-identity p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.private-conversation-identity p span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.private-message-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: min(56vh, 570px);
  min-height: 260px;
  overflow: auto;
  padding: 1.3rem;
  background:
    radial-gradient(circle at 0 100%, rgba(221, 214, 254, 0.22), transparent 18rem),
    #fbfaff;
}

.private-message-row {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  max-width: min(82%, 640px);
}

.private-message-row.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.private-message-avatar {
  width: 36px;
  height: 36px;
  border-width: 2px;
}

.private-message-avatar svg {
  width: 17px;
  height: 17px;
}

.private-message-content {
  min-width: 0;
}

.private-message-author {
  display: block;
  margin: 0 0.35rem 0.25rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.private-message-content p {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e9e5f5;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: var(--text-heading);
  font-size: 0.9rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.04);
}

.private-message-row.is-mine .private-message-content p {
  border-color: #ddd6fe;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
}

.private-message-content time {
  display: block;
  margin: 0.2rem 0.35rem 0;
  color: #94a3b8;
  font-size: 0.62rem;
}

.private-message-row.is-mine .private-message-content time {
  text-align: left;
}

.conversation-first-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: var(--text-muted);
  text-align: center;
}

.conversation-first-message svg {
  width: 34px;
  height: 34px;
  color: var(--mauve-500);
}

.conversation-first-message p {
  margin: 0.65rem 0 0;
}

.private-message-form {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--mauve-100);
}

.private-message-form textarea {
  min-height: 50px;
  max-height: 130px;
  resize: vertical;
}

.private-message-form .btn {
  flex: 0 0 auto;
}

.conversation-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

.conversation-privacy-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--mauve-600);
}

.conversation-inbox-link {
  margin-bottom: 0.7rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .conversation-list-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
  }

  .conversation-card {
    padding: 1rem;
  }

  .conversation-open-badge {
    max-width: 94px;
    white-space: normal;
  }

  .private-conversation-header {
    gap: 0.7rem;
    padding: 1rem;
  }

  .private-peer-avatar {
    width: 58px;
    height: 58px;
  }

  .private-conversation-identity h1 {
    font-size: 1rem;
  }

  .private-message-list {
    height: 55vh;
    padding: 0.9rem 0.65rem;
  }

  .private-message-row {
    max-width: 94%;
  }

  .private-message-form {
    align-items: stretch;
    flex-direction: column;
    padding: 0.8rem;
  }

  .private-message-form .btn {
    width: 100%;
  }
}

.member-chat-request,
.member-message-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.member-chat-request {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.member-chat-request > div:first-child {
  display: flex;
  flex-direction: column;
}

.member-chat-request span,
.member-chat-status,
.member-empty-state {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.member-chat-request-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.member-chat-response-btn {
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.76rem;
}

.member-chat-response-btn.accept {
  background: #d1fae5;
  color: #047857;
}

.member-chat-response-btn.reject {
  background: #fee2e2;
  color: #b91c1c;
}

.member-premium-note {
  color: var(--gold-600);
  background: var(--gold-100);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  margin-top: 0.7rem;
}

.member-conversation {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.member-message-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.25rem;
}

.member-message-list p {
  align-self: flex-start;
  max-width: 82%;
  background: #e2e8f0;
  border-radius: 12px 12px 12px 3px;
  padding: 0.45rem 0.7rem;
  margin: 0;
  font-size: 0.84rem;
}

.member-message-list p.is-mine {
  align-self: flex-end;
  background: var(--mauve-600);
  color: #fff;
  border-radius: 12px 12px 3px 12px;
}

.member-message-form {
  align-items: stretch;
}

.member-message-form .custom-input {
  min-width: 0;
  flex: 1;
}

.member-message-form .btn {
  flex: 0 0 auto;
}

.member-inbox-box p {
  color: var(--text-body);
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
}

.member-privacy-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mauve-800);
  margin-bottom: 0.5rem;
}

.member-privacy-board p,
.member-inbox-row {
  color: var(--text-body);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.member-inbox-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(109, 40, 217, 0.12);
  padding-top: 0.65rem;
}

.member-favorites-box .member-inbox-row {
  border-top-color: rgba(217, 119, 6, 0.2);
}

.member-inbox-row span {
  color: var(--mauve-700);
  text-align: left;
}

.member-profile-link {
  color: var(--mauve-700);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(109, 40, 217, 0.35);
  text-underline-offset: 3px;
}

.member-profile-link:hover {
  color: var(--mauve-900);
}

.public-member-page {
  min-height: 70vh;
  padding-top: 6rem;
}

.public-profile-heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.public-profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 3px solid var(--mauve-200);
  border-radius: 50%;
  background: var(--mauve-50);
  color: var(--mauve-600);
}

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

.public-profile-avatar svg {
  width: 46px;
  height: 46px;
}

.public-profile-heading h1 {
  margin: 0.5rem 0 0.25rem;
  color: var(--mauve-900);
}

.public-profile-heading p {
  margin: 0;
  color: var(--text-muted);
}

.public-profile-section {
  margin: 1rem 0;
}

.public-profile-section h2 {
  margin: 0 0 1rem;
  color: var(--mauve-900);
  font-size: 1.1rem;
}

.public-profile-section > p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.public-profile-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.public-profile-field,
.public-profile-answer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem;
  border: 1px solid var(--mauve-100);
  border-radius: 12px;
  background: #fff;
}

.public-profile-field strong,
.public-profile-answer strong {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.public-profile-field span,
.public-profile-answer span {
  color: var(--text-heading);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.public-profile-answer + .public-profile-answer {
  margin-top: 0.65rem;
}

.public-profile-photo-note,
.public-profile-privacy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.public-profile-privacy {
  justify-content: center;
  margin: 1.25rem 0;
}

.public-profile-missing {
  max-width: 620px;
  margin: 3rem auto;
  text-align: center;
}

.public-profile-missing > svg {
  width: 42px;
  height: 42px;
  color: var(--mauve-600);
}

.public-profile-missing h1 {
  color: var(--mauve-900);
}

.public-profile-missing p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

@media (max-width: 575px) {
  .public-profile-heading {
    align-items: flex-start;
  }

  .public-profile-avatar {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
  }
}

.p-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.track-badge-card {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.track-badge-card i { width: 14px; height: 14px; }

.badge-fiftyfy {
  background: var(--fiftyfy-bg);
  color: var(--fiftyfy-teal);
  border: 1px solid var(--fiftyfy-border);
}
.badge-weekfy {
  background: var(--weekfy-bg);
  color: var(--weekfy-amber);
  border: 1px solid var(--weekfy-border);
}
.badge-permanent {
  background: var(--mauve-100);
  color: var(--mauve-700);
  border: 1px solid var(--mauve-200);
}

.compat-badge {
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--mauve-50);
  color: var(--mauve-800);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--mauve-200);
}
.profile-answer-points,
.admin-score-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
}
.profile-answer-points { margin-inline-start: auto; }
.admin-score-badge { width: fit-content; }

.p-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.p-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--mauve-200);
}
.p-avatar-circle.male-theme {
  background: linear-gradient(135deg, #ddd6fe, #a78bfa);
  color: var(--mauve-800);
}
.p-avatar-circle.female-theme {
  background: linear-gradient(135deg, #fbcfe8, #f472b6);
  color: #831843;
}
.p-avatar-circle.male-fiftyfy-theme {
  background: linear-gradient(135deg, #a5f3fc, #06b6d4);
  color: #164e63;
}
.p-avatar-circle.female-fiftyfy-theme {
  background: linear-gradient(135deg, #99f6e4, #14b8a6);
  color: #134e4a;
}
.p-avatar-circle.male-weekfy-theme {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #78350f;
}
.p-avatar-circle.female-weekfy-theme {
  background: linear-gradient(135deg, #fed7aa, #f97316);
  color: #7c2d12;
}
.p-avatar-circle i { width: 36px; height: 36px; }

.p-info {
  text-align: center;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}
.p-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}
.p-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.p-meta i { width: 14px; height: 14px; color: var(--mauve-600); }

.p-bio {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.p-tag {
  background: var(--mauve-50);
  color: var(--mauve-700);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--mauve-100);
}
.p-tag.tag-strong {
  background: var(--mauve-100);
  color: var(--mauve-900);
  font-weight: 700;
}
.p-tag.tag-alert {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
  font-weight: 700;
}

/* ==========================================================================
   Success Stories Section
   ========================================================================== */
.stories-section {
  background: #ffffff;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.story-card {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  border-radius: 24px;
  padding: 2.2rem 2rem;
  position: relative;
  transition: all var(--transition-normal);
}
.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--mauve-400);
}

.story-rings-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.story-track-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mauve-700);
  background: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  border: 1px solid var(--mauve-200);
}

.quote-mark {
  position: absolute;
  top: 1.2rem;
  left: 1.8rem;
  font-size: 4rem;
  color: var(--mauve-200);
  line-height: 1;
  font-family: serif;
}

.story-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 2;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.author-avatar-couple {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mauve-600), var(--gold-500));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.author-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-heading);
}
.author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: var(--bg-page);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--mauve-200);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-fast);
}
.faq-item:hover {
  border-color: var(--mauve-400);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  text-align: right;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--mauve-600);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-fast);
  padding: 0 1.6rem;
}

.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 0 1.6rem 1.4rem;
}
.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Call to Action Banner
   ========================================================================== */
.cta-banner-section {
  padding: 4rem 0 5.5rem;
}

.cta-inner-card {
  background: linear-gradient(135deg, var(--mauve-900) 0%, var(--mauve-800) 60%, var(--mauve-700) 100%);
  border-radius: 32px;
  padding: 4.5rem 2rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gold-500);
  opacity: 0.15;
  filter: blur(80px);
  top: -100px;
  left: 20%;
  pointer-events: none;
}

.cta-rings {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--mauve-200);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.cta-micro-note {
  font-size: 0.85rem;
  color: var(--mauve-300);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--mauve-950);
  color: #ffffff;
  padding: 4.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.brand-col .footer-about {
  color: var(--mauve-300);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 1.2rem 0 1.5rem;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mauve-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.social-icon:hover {
  background: var(--mauve-600);
  color: #ffffff;
  transform: translateY(-2px);
}
.social-icon i { width: 18px; height: 18px; }

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--gold-500);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--mauve-300);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #ffffff;
  padding-right: 4px;
}

.footer-contact-text {
  font-size: 0.88rem;
  color: var(--mauve-300);
  margin-bottom: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}
.footer-contact-item i { width: 18px; height: 18px; color: var(--gold-400); }

.trust-badge-footer {
  margin-top: 1.2rem;
}
.pill-secure {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--mauve-200);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
  text-align: center;
  color: var(--mauve-400);
  font-size: 0.85rem;
}

/* ==========================================================================
   ADVANCED FILTER MODAL
   ========================================================================== */
.modal-card-wide {
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem 2.5rem;
}

.icon-filter-glow {
  background: linear-gradient(135deg, var(--mauve-600), #06b6d4);
  color: #ffffff;
}

.filter-sections-container {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.filter-group-block {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
}

.filter-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mauve-900);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.filter-block-title i { width: 16px; height: 16px; color: var(--mauve-600); }

.filter-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-choice-chip {
  cursor: pointer;
  user-select: none;
}
.filter-choice-chip input {
  display: none;
}

.choice-box {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--mauve-200);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: all var(--transition-fast);
}

.filter-choice-chip:hover .choice-box {
  border-color: var(--mauve-400);
}

.filter-choice-chip input:checked + .choice-box {
  background: var(--mauve-600);
  color: #ffffff;
  border-color: var(--mauve-600);
  box-shadow: 0 3px 10px rgba(109, 40, 217, 0.25);
}

.filter-choice-chip input:checked + .choice-box.choice-fiftyfy {
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  border-color: #0d9488;
}

.filter-choice-chip input:checked + .choice-box.choice-weekfy {
  background: linear-gradient(135deg, #d97706, #ea580c);
  border-color: #d97706;
}

.filter-choice-chip input:checked + .choice-box.choice-alert {
  background: #dc2626;
  border-color: #b91c1c;
}

/* أسئلة الفلترة داخل المودال — بنفس لغة أسئلة صفحات المشتركين
   (تُبنى من SP_TAG_GROUPS عبر js/criteria.js) */
.filter-question-row + .filter-question-row {
  margin-top: 1rem;
}

.filter-question-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mauve-900);
  margin-bottom: 0.55rem;
}

.premium-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid #F4C45E;
  border-radius: 9999px;
  background: #FFF7DB;
  color: #925B00;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: middle;
}
.premium-filter-badge i,
.premium-filter-badge svg { width: 12px; height: 12px; }

.premium-question-locked .filter-choice-chip input:disabled + .choice-box {
  opacity: 0.75;
  text-decoration: none;
  border-style: dashed;
  border-color: #EABF55;
  background: #FFFBEB;
  color: #78520D;
  cursor: not-allowed;
}

.filter-single-note {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mauve-600);
}

.filter-choice-chip input:disabled + .choice-box {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f6f5fa;
}

.filter-infertile-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #dc2626;
}

.filter-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--mauve-200);
}
.btn-apply-filter {
  padding: 0.85rem 1.8rem;
}

/* ==========================================================================
   Standard Auth Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 9, 56, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mauve-50);
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--mauve-200);
  color: var(--mauve-900);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.modal-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--mauve-100);
  color: var(--mauve-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
}
.modal-icon-wrap i { width: 26px; height: 26px; }

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}
.modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--mauve-50);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.m-tab-btn {
  background: none;
  border: none;
  padding: 0.6rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 9px;
  transition: all var(--transition-fast);
}
.m-tab-btn.active {
  background: #ffffff;
  color: var(--mauve-700);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0.3rem 0;
}
.form-agreement input {
  margin-top: 0.25rem;
  accent-color: var(--mauve-600);
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-body);
}
.remember-me input { accent-color: var(--mauve-600); }
.forgot-pwd-link {
  color: var(--mauve-600);
  font-weight: 600;
}

.modal-btn {
  margin-top: 0.6rem;
  padding: 0.85rem;
}

.modal-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.4rem;
}
.modal-footer-note i { width: 14px; height: 14px; color: var(--mauve-600); }

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--mauve-200);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon {
  color: #10b981;
  display: flex;
  align-items: center;
}
.toast-icon i { width: 22px; height: 22px; }
.toast-message {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-banner-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-text-content {
    transform: none;
  }
  .hero-title {
    transform: translateX(4cm);
  }
  .hero-subtitle {
    transform: translateX(4cm);
  }
  .hero-couple-space {
    display: flex;
    justify-content: center;
    min-height: 0;
    margin-top: 0.5rem;
  }
  .hero-premium-offer { width: min(100%, 520px); margin-top: 0; }
  .hero-subtitle {
    margin-bottom: 2rem;
  }
  .form-row-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .mini-finder-form {
    grid-template-columns: 1fr;
  }
  .floating-badge {
    display: none;
  }
  .tracks-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-stat-box {
    grid-column: span 2;
  }
  .steps-grid, .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-actions .btn {
    display: none;
  }
  .header-actions { gap: 0.35rem; }
  .member-notifications { gap: 0.2rem; }
  .member-notification-link {
    min-height: 38px;
    min-width: 38px;
    padding: 0.3rem;
    gap: 0.15rem;
    border-radius: 12px;
  }
  .member-notification-label { display: none; }
  .member-notification-link > i { width: 17px; height: 17px; }
  .member-notification-count {
    position: absolute;
    top: -5px;
    left: -5px;
    min-width: 17px;
    height: 17px;
    font-size: 0.62rem;
  }
  .mobile-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 80px);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.5rem;
    transition: right var(--transition-normal);
    border-left: 1px solid var(--mauve-200);
  }
  .main-nav.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .hero-section {
    padding: 3.5rem 0 2.5rem;
    background-position: calc(50% + 2cm) center;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.75;
  }
  .form-row-5 {
    grid-template-columns: 1fr;
  }
  .finder-cards-grid {
    grid-template-columns: 1fr;
  }
  .finder-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .steps-grid, .profiles-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .promo-stat-box {
    grid-column: auto;
  }
  .stat-box:not(:last-child)::after {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .profile-tabs-wrapper {
    flex-direction: column;
  }
}

/* ==========================================================================
   Logged-in State & Demo Account Styles (mhtaurus)
   ========================================================================== */

/* Header Logged-in Pill */
.user-logged-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--mauve-50);
  border: 1.5px solid var(--mauve-300);
  padding: 0.35rem 0.6rem 0.35rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.user-logged-pill:hover {
  background: var(--mauve-100);
  border-color: var(--mauve-500);
  box-shadow: 0 4px 15px rgba(109, 40, 217, 0.15);
}

.user-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mauve-700), var(--mauve-900));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  position: relative;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #ffffff;
}

.user-meta-header {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.user-name-display {
  font-size: 0.88rem;
  color: var(--mauve-950);
  font-weight: 800;
}

.user-badge-gold {
  font-size: 0.72rem;
  color: #D97706;
  font-weight: 700;
}

.btn-user-logout {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #EF4444;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-right: 0.2rem;
}
.btn-user-logout:hover {
  background: #EF4444;
  color: #ffffff;
}
.btn-user-logout i { width: 15px; height: 15px; }

/* Demo Login Callout Inside Modal */
.demo-login-callout {
  background: linear-gradient(135deg, #FEF3C7 0%, #F5F3FF 100%);
  border: 1.5px dashed #F59E0B;
  border-radius: 18px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.2rem;
}

.demo-callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.demo-callout-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #92400E;
}
.demo-callout-tag i { width: 16px; height: 16px; color: #F59E0B; }

.badge-premium-pill {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.demo-creds-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.cred-row code {
  background: #EDE9FE;
  color: #5B21B6;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 800;
}

.btn-quick-fill-demo {
  width: 100%;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
  transition: all var(--transition-fast);
}
.btn-quick-fill-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.35);
}
.btn-quick-fill-demo i { width: 16px; height: 16px; color: #FDE68A; }

/* User Profile Modal (mhtaurus Dashboard) */
.profile-modal-card {
  max-width: 580px;
  padding: 2.2rem;
}

.user-profile-header {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.4rem;
}

.u-profile-avatar {
  position: relative;
  flex-shrink: 0;
}
.u-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mauve-700), var(--mauve-900));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.3);
}
.u-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  border: 3px solid #ffffff;
}

.u-name-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.u-name-row h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
}
.u-username {
  color: var(--mauve-600);
  font-size: 0.95rem;
}

.badge-verif-pill {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.badge-verif-pill i { width: 13px; height: 13px; }

.u-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.u-tags-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.u-tag-track {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  color: var(--mauve-700);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
}
.u-tag-prem {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
}

.u-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.u-stat-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.9rem;
  text-align: center;
}
.u-stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--mauve-700);
}
.u-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.u-section-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.u-section-title i { width: 16px; height: 16px; color: var(--mauve-600); }

.u-requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.u-req-card {
  background: #ffffff;
  border: 1px solid var(--mauve-200);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.u-req-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-heading);
}
.u-req-info small {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.btn-req-action {
  background: var(--mauve-600);
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.btn-req-action:hover {
  background: var(--mauve-700);
}

/* ==========================================================================
   NEW SECTION: Subscriber Profile Page (صفحة المشترك المستقلة)
   ========================================================================== */
.sp-body {
  background: var(--bg-page);
}

/* Page Top Nav (profile page) */
.sp-nav {
  display: flex;
  align-items: center;
}
.sp-guest-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.sp-initial {
  line-height: 1;
}

/* Header round link button (in logged-in pill) */
.btn-user-page {
  background: var(--mauve-600);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-user-page:hover {
  background: var(--mauve-700);
  color: #ffffff;
}
.btn-user-page i { width: 15px; height: 15px; }

/* Page Hero Strip */
.sp-hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 2.4rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mauve-900) 0%, var(--mauve-700) 55%, var(--mauve-500) 100%);
}
.sp-hero-glow {
  position: absolute;
  top: -130px;
  left: 50%;
  width: 560px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}
.sp-hero .container { position: relative; z-index: 1; }
.sp-hero .section-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FDE68A;
}
.sp-hero .section-title {
  color: #ffffff;
  margin: 0.9rem 0 0.6rem;
}
.sp-hero .section-desc {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto;
}

.sp-section {
  padding: 2.6rem 0 3.6rem;
}

.results-hero .section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.results-hero .section-pill i {
  width: 17px;
  height: 17px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.2rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--mauve-100);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.results-toolbar h2 {
  margin: 0 0 0.25rem;
  color: var(--text-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.results-toolbar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.results-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.results-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  color: var(--mauve-800);
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.results-grid {
  min-height: 180px;
}

.results-grid .cloud-profile-card .p-avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.results-empty {
  max-width: 680px;
  margin: 2rem auto;
  padding: 2.6rem 1.5rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--mauve-100);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.results-empty-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--mauve-700);
  background: var(--mauve-50);
  border-radius: 50%;
}

.results-empty-icon i {
  width: 31px;
  height: 31px;
}

.results-empty h2 {
  margin: 0 0 0.5rem;
  color: var(--text-heading);
  font-size: 1.25rem;
}

.results-empty p {
  max-width: 500px;
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Login Gate */
.sp-gate {
  display: flex;
  justify-content: center;
}
.sp-gate-card {
  max-width: 640px;
  width: 100%;
  text-align: center;
  background: var(--bg-card);
  border: 1.5px solid var(--mauve-200);
  border-radius: 26px;
  padding: 2.6rem 2rem;
  box-shadow: var(--shadow-md);
}
.sp-gate-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mauve-700), var(--mauve-900));
  box-shadow: 0 10px 26px rgba(109, 40, 217, 0.3);
}
.sp-gate-icon i { width: 34px; height: 34px; }
.sp-gate-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}
.sp-gate-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}
.sp-gate-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.sp-gate-note {
  margin: 1.2rem 0 0 !important;
  font-size: 0.82rem;
  color: var(--text-light);
}
.sp-gate-note code {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  color: var(--mauve-700);
  font-weight: 700;
}

/* Layout */
.sp-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}
.sp-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}
.sp-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cards */
.sp-card {
  background: var(--bg-card);
  border: 1.5px solid var(--mauve-100);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.sp-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.sp-card-head i { width: 20px; height: 20px; color: var(--mauve-600); }
.sp-card-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
}
.sp-card-head .optional-badge { margin-right: auto; }
.sp-card-head .sp-progress-value { margin-right: auto; color: var(--mauve-700); font-weight: 900; }
.sp-card-head .sp-chip-count {
  margin-right: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mauve-700);
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  border-radius: 9999px;
  padding: 0.15rem 0.6rem;
}

.sp-quick-search-card .sp-card-head {
  margin-bottom: 0.65rem;
}

.sp-quick-search-card .sp-quick-search-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.sp-quick-search-card .sp-quick-search-form .form-group {
  margin-bottom: 0;
}

.sp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.sp-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.sp-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.75;
}
.sp-counter {
  font-size: 0.76rem;
  color: var(--text-light);
  align-self: flex-end;
}

.sp-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.9rem;
}
.sp-hint-inline { margin-top: 0; margin-bottom: 0.9rem; }
.sp-hint-tight { margin-top: 0; }

.sp-chip-list {
  gap: 0.5rem;
}

/* شروطي وتفضيلاتي: أقسام (ثقافية/دينية + مواصفات + أسئلة اختيارية) */
.sp-criteria-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sp-criteria-group {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  transition: border-color var(--transition-fast);
}

.sp-group-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.sp-group-head i { width: 17px; height: 17px; color: var(--mauve-600); }

.sp-group-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--mauve-900);
  margin: 0;
}

.sp-group-head .optional-badge { margin-right: 0.15rem; }

.sp-group-count {
  margin-right: auto;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--mauve-700);
  background: #ffffff;
  border: 1px solid var(--mauve-200);
  border-radius: 9999px;
  padding: 0.14rem 0.6rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.sp-criteria-group.has-selection .sp-group-count {
  background: var(--mauve-600);
  color: #ffffff;
  border-color: var(--mauve-600);
}

.sp-group-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0.35rem 0 0.85rem;
}

/* قسم الأسئلة الاختيارية: كل سؤال بعنوان مستقل ثم خيارات الإجابة */
.sp-tag-question { margin-bottom: 0.85rem; }
.sp-tag-question:last-child { margin-bottom: 0; }
.sp-question-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mauve-800);
  margin-bottom: 0.5rem;
}
.premium-question .criteria-chip:disabled {
  background: #FFFBEB;
  border: 1px dashed #EABF55;
  color: #78520D;
  opacity: 0.78;
  cursor: not-allowed;
  box-shadow: none;
}
.admin-premium-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #F4C45E;
  border-radius: 12px;
  background: #FFFBEB;
  color: #78520D;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}
.admin-premium-toggle input { accent-color: #D97706; }
.admin-premium-toggle span { display: inline-flex; align-items: center; gap: 0.4rem; }
.admin-premium-toggle svg { width: 16px; height: 16px; }
.sp-question-label svg, .sp-question-label i { width: 15px; height: 15px; color: var(--mauve-600); flex-shrink: 0; }
.sp-female .sp-question-label { color: #9D174D; }
.sp-female .sp-question-label svg, .sp-female .sp-question-label i { color: #DB2777; }
.sp-male .sp-question-label { color: #1E40AF; }
.sp-male .sp-question-label svg, .sp-male .sp-question-label i { color: #2563EB; }

/* قسم المظهر والعادات العامة: حقول الوزن والطول */
.sp-measures-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
@media (max-width: 520px) {
  .sp-measures-row { grid-template-columns: 1fr; }
}
.sp-measure-field .sp-question-label {
  margin-bottom: 0.4rem;
  cursor: pointer;
}
.sp-measure-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sp-measure-input {
  width: 100%;
  padding-left: 3rem;
  text-align: left;
  direction: ltr;
  font-weight: 700;
}
.sp-measure-unit {
  position: absolute;
  left: 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  pointer-events: none;
}
.sp-single-note {
  font-style: normal;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* قاعدة «عقيم / عقيمة»: الخيارات المعطّلة داخل قسم «الأطفال والخطط الإنجابية» */
.sp-criteria-group .criteria-chip.is-locked,
.sp-criteria-group .criteria-chip:disabled {
  background: #F4F4F5;
  border-style: dashed;
  border-color: var(--mauve-200);
  color: var(--text-muted);
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: line-through;
  box-shadow: none;
}
.sp-criteria-group .criteria-chip.is-locked:hover { background: #F4F4F5; border-color: var(--mauve-200); }
.sp-infertile-note {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-muted);
}
.sp-female .sp-infertile-note { color: #9D174D; }
.sp-male .sp-infertile-note { color: #1E40AF; }

/* على خلفية القسم البنفسجية الفاتحة تظهر الشرائح بيضاء للتمييز */
.sp-criteria-group .criteria-chip { background: #ffffff; }
.sp-criteria-group .criteria-chip:hover {
  background: var(--mauve-100);
  border-color: var(--mauve-400);
}
.sp-criteria-group .criteria-chip.active {
  background: var(--mauve-600);
  color: #ffffff;
  border-color: var(--mauve-600);
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

.sp-privacy-banner { margin-bottom: 1.4rem; }

/* ==========================================================================
   Gender-Split Profiles: هوية لونية مميزة لكل صفحة
   profile-male.html (أزرق رجالي) / profile-female.html (وردي نسائي)
   ========================================================================== */
.sp-gender-locked {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1.5px solid var(--mauve-200);
  background: var(--mauve-50);
  color: var(--mauve-900);
}
.sp-gender-locked i { width: 18px; height: 18px; }

/* Male page: blue identity */
.sp-male .sp-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 55%, #3B82F6 100%);
}
.sp-male .sp-gender-locked {
  border-color: #BFDBFE;
  background: #EFF6FF;
  color: #1E40AF;
}
.sp-male .sp-criteria-group {
  background: #EFF6FF;
  border-color: #BFDBFE;
}
.sp-male .sp-group-title { color: #1E40AF; }
.sp-male .sp-group-head i { color: #2563EB; }
.sp-male .sp-group-count { color: #1D4ED8; border-color: #BFDBFE; }
.sp-male .sp-criteria-group.has-selection .sp-group-count {
  background: #2563EB;
  border-color: #2563EB;
}
.sp-male .sp-criteria-group .criteria-chip.active {
  background: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.sp-male .sp-gate-icon {
  background: linear-gradient(135deg, #2563EB, #1E3A8A);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
}

/* Female page: rose identity */
.sp-female .sp-hero {
  background: linear-gradient(135deg, #831843 0%, #BE185D 55%, #EC4899 100%);
}
.sp-female .sp-gender-locked {
  border-color: #FBCFE8;
  background: #FFF1F2;
  color: #9D174D;
}
.sp-female .sp-criteria-group {
  background: #FFF1F2;
  border-color: #FBCFE8;
}
.sp-female .sp-group-title { color: #9D174D; }
.sp-female .sp-group-head i { color: #DB2777; }
.sp-female .sp-group-count { color: #BE185D; border-color: #FBCFE8; }
.sp-female .sp-criteria-group.has-selection .sp-group-count {
  background: #DB2777;
  border-color: #DB2777;
}
.sp-female .sp-criteria-group .criteria-chip.active {
  background: #DB2777;
  border-color: #DB2777;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3);
}
.sp-female .sp-gate-icon {
  background: linear-gradient(135deg, #DB2777, #831843);
  box-shadow: 0 10px 26px rgba(219, 39, 119, 0.3);
}

/* Guardian mini-card (female page only) */
.sp-guardian-mini {
  margin-top: 1rem;
  border: 1.5px dashed var(--mauve-300);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.6);
}
.sp-female .sp-guardian-mini {
  border-color: #F9A8D4;
  background: #FFF7ED;
}
.sp-guardian-mini-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.sp-guardian-mini-head i { width: 18px; height: 18px; color: var(--mauve-600); }
.sp-female .sp-guardian-mini-head i { color: #DB2777; }
.sp-guardian-mini-head strong { font-size: 0.92rem; color: var(--text-heading); }

/* زر الدخول التجريبي للمشتركة */
.btn-quick-fill-female { margin-top: 0.6rem; background: rgba(219, 39, 119, 0.1); border-color: #FBCFE8; }
.btn-quick-fill-female:hover { background: rgba(219, 39, 119, 0.18); }

/* Photo Card */
.sp-photo-card { text-align: center; }
.sp-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--mauve-200);
  background: linear-gradient(160deg, var(--mauve-50), var(--mauve-100));
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter var(--transition-normal), transform var(--transition-normal);
}
.sp-photo-frame.is-hidden .sp-photo-img {
  filter: blur(16px) saturate(0.75);
  transform: scale(1.08);
}
.sp-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--mauve-400);
  font-size: 0.82rem;
  font-weight: 600;
}
.sp-photo-placeholder i { width: 54px; height: 54px; }
.sp-photo-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.2rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(30, 9, 56, 0.5) 0%, rgba(30, 9, 56, 0.85) 100%);
}
.sp-photo-lock i { width: 32px; height: 32px; }
.sp-photo-lock span { font-weight: 800; font-size: 0.95rem; }
.sp-photo-lock small { font-size: 0.72rem; opacity: 0.92; line-height: 1.6; }

.sp-photo-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.sp-photo-actions .btn {
  flex: 1;
  font-size: 0.84rem;
  padding: 0.65rem 0.8rem;
}
.sp-photo-access-link {
  width: 100%;
  margin-top: 0.75rem;
}

/* Optional Hide-Photo Toggle */
.sp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-page);
  border: 1.5px solid var(--mauve-100);
  border-radius: 14px;
}
.sp-toggle-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-heading);
  text-align: right;
}
.sp-toggle-text i { width: 17px; height: 17px; color: var(--mauve-600); flex-shrink: 0; }

.sp-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.sp-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.sp-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 9999px;
  transition: background var(--transition-fast);
}
.sp-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: transform var(--transition-fast);
}
.sp-switch input:checked + .sp-slider { background: var(--mauve-600); }
.sp-switch input:checked + .sp-slider::before { transform: translateX(-24px); }
.sp-switch input:focus-visible + .sp-slider { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25); }

/* Visibility Pill */
.sp-visibility-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.6;
}
.sp-visibility-pill i { width: 16px; height: 16px; flex-shrink: 0; }
.sp-visibility-pill.is-empty {
  background: var(--bg-page);
  border: 1px dashed var(--mauve-300);
  color: var(--text-muted);
}
.sp-visibility-pill.is-visible {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.sp-visibility-pill.is-hidden {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

/* Completeness Meter */
.sp-progress {
  height: 10px;
  border-radius: 9999px;
  background: var(--mauve-100);
  overflow: hidden;
}
.sp-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--mauve-600), var(--gold-500));
  transition: width var(--transition-normal);
}
.sp-progress-hint {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Live Preview Mini Card */
.sp-mini-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1.5px solid var(--mauve-100);
  background: linear-gradient(160deg, #ffffff, var(--mauve-50));
}
.sp-mini-photo {
  position: relative;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mauve-100);
  color: var(--mauve-500);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}
.sp-mini-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter var(--transition-normal);
}
.sp-mini-photo > i {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
}
.sp-mini-photo.has-photo > i { display: none; }
.sp-mini-photo.is-hidden .sp-mini-photo-bg { filter: blur(7px) saturate(0.7); }
.sp-mini-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(30, 9, 56, 0.55);
  color: #ffffff;
}
.sp-mini-lock i { width: 16px; height: 16px; }
.sp-mini-lock em { font-size: 0.6rem; font-style: normal; font-weight: 700; }

.sp-mini-body { min-width: 0; }
.sp-mini-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.15rem;
}
.sp-mini-body small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.sp-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.sp-mini-tag {
  background: var(--mauve-50);
  border: 1px solid var(--mauve-200);
  color: var(--mauve-700);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

/* Save Bar */
.sp-save-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--glass-card);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--mauve-200);
  border-radius: 18px;
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-md);
}
.sp-save-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sp-save-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sp-unsaved {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #B45309;
}
.sp-unsaved i { width: 15px; height: 15px; }
.sp-save-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Footer Row (profile page) */
.sp-footer-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 2.2rem 0 1.4rem;
}
.sp-footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.7rem 0.9rem;
  background: #faf7ef;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.sp-footer-brand .brand-logo-img { height: 58px; }
.sp-footer-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.sp-footer-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mauve-200);
  transition: color var(--transition-fast);
}
.sp-footer-links a:hover { color: #FDE68A; }
.pill-secure {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mauve-200);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}

/* Responsive (Subscriber Profile Page) */
@media (max-width: 1000px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-side { position: static; }
  .sp-photo-frame { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .sp-nav { display: none; }
  .sp-guest-actions .btn-ghost { display: none; }
  .sp-grid-2, .sp-grid-3 { grid-template-columns: 1fr; }
  .sp-hero { padding: 2.4rem 0 1.8rem; }
  .sp-hero .section-title { font-size: 1.6rem; }
  .sp-footer-row { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sp-save-bar { position: static; }
  .sp-save-actions { width: 100%; }
  .sp-save-actions .btn { flex: 1; }
  .sp-card-head .optional-badge { margin-right: 0; }
  .sp-criteria-group { padding: 0.9rem 0.95rem; }
}

/* ==========================================================================
   Mobile-Friendly Layer (Comprehensive Responsive Enhancements)
   يضبط كل الأقسام على شاشات الموبايل والتابلت: الهيدر والدرج الجانبي،
   النماذج، البطاقات، النوافذ المنبثقة، وصفحة المشترك.
   ========================================================================== */

/* --- Base hardening (touch & viewport) --- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
* { -webkit-tap-highlight-color: rgba(109, 40, 217, 0.12); }
button, a, input, select, textarea, label { touch-action: manipulation; }
body.nav-open { overflow: hidden; }

/* --- Mobile drawer auth actions (داخل قائمة الموبايل) --- */
.mobile-auth-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  padding-top: 1.1rem;
  margin-top: 0.2rem;
  border-top: 1px dashed var(--mauve-200);
}
.mobile-auth-item .btn { width: 100%; }
@media (min-width: 769px) {
  .mobile-auth-item { display: none !important; }
}

/* --- ≤1024px : تابلت ولابتوب صغير --- */
@media (max-width: 1024px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4.2rem 0; }
  .features-layout { gap: 2rem; }
  .footer-top { gap: 2rem; }
  .tracks-grid, .steps-grid, .profiles-grid { gap: 1.5rem; }
  .sim-view-content { padding: 1.5rem 1.4rem; }
}

/* --- ≤768px : الموبايل والتابلت الصغير --- */
@media (max-width: 768px) {
  .site-ad-banner { min-height: 40px; padding: 0.35rem 2.6rem; }
  .site-ad-banner-link { min-height: 34px; }
  .site-ad-banner-image { max-height: 58px; }
  .site-ad-banner-close { left: 0.25rem; width: 32px; height: 32px; }

  /* الهيدر والمينيو */
  .header-container { height: 68px; }
  .brand-logo-img { height: 46px; }
  .footer-logo .brand-logo-img { height: 56px; }
  .sp-footer-brand .brand-logo-img { height: 50px; }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
  }
  .mobile-toggle:active { background: var(--mauve-100); }
  .main-nav {
    top: 68px;
    width: 86%;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.6rem 1.3rem 2.4rem;
  }
  .nav-list { gap: 0.85rem; }
  .nav-link { font-size: 1rem; padding: 0.5rem 0; }
  .nav-link.active::after { bottom: 0; }
  .user-logged-pill { padding: 0.3rem 0.45rem; gap: 0.5rem; }
  .user-meta-header { display: none; }
  .btn-user-page, .btn-user-logout { width: 38px; height: 38px; flex-shrink: 0; }
  .top-announcement { font-size: 0.78rem; padding: 0.5rem 0; }
  .announcement-content { gap: 0.5rem; }

  /* العناوين والأقسام */
  .container { padding: 0 1.1rem; }
  .section { padding: 3.2rem 0; }
  .section-title { font-size: 1.75rem; }
  .section-desc { font-size: 0.95rem; margin-bottom: 2rem; }

  /* الهيرو */
  .hero-section {
    padding: 2.8rem 0 2.2rem;
    background-image: linear-gradient(90deg, rgba(23, 5, 36, 0.08), rgba(23, 5, 36, 0.58)),
      url('../images/hero-bg.jpg');
    background-position: center center;
  }
  .hero-text-content { width: 100%; max-width: 100%; }
  .hero-banner-row { margin-bottom: 1.8rem; }
  .hero-couple-space { margin-top: 0; }
  .hero-premium-offer { padding: 0.9rem 1rem; gap: 0.75rem; border-radius: 18px; margin-top: 0; }
  .hero-premium-offer-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; }
  .hero-premium-offer-icon i { width: 22px; height: 22px; }
  .hero-premium-offer p { font-size: 0.88rem; line-height: 1.7; }
  .hero-title, .hero-subtitle { width: 100%; max-width: 100%; transform: none; }
  .hero-gradient-violet, .hero-gradient-gold { max-width: 100%; }
  .hero-title { font-size: 1.9rem; line-height: 1.35; }
  .hero-subtitle { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }
  .hero-tag { font-size: 0.8rem; padding: 0.4rem 0.95rem; margin-bottom: 1rem; }
  .hero-cta-buttons { gap: 0.7rem; }
  .btn-hero-cta, .btn-glass-hero { flex: 1 1 100%; padding: 0.85rem 1.2rem; font-size: 0.95rem; }
  .floating-badge { display: none; }

  /* صندوق البحث والفلترة */
  .quick-finder-card.glass-finder-card { padding: 1.25rem 1.1rem; border-radius: 18px; }
  .finder-header { flex-direction: column; align-items: flex-start; gap: 0.7rem; margin-bottom: 1.1rem; }
  .btn-open-advanced-trigger { width: 100%; justify-content: center; padding: 0.6rem 0.9rem; }
  .quick-criteria-bar { gap: 0.45rem; }
  .criteria-chip {
    font-size: 0.75rem;
    padding: 0.42rem 0.75rem;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
  .finder-footer { gap: 0.7rem; }

  /* النماذج: مقاس 16px يمنع تكبير iOS التلقائي عند الكتابة */
  .custom-select, .custom-input, input, select, textarea { font-size: 16px; }
  .custom-select, .custom-input { padding: 0.7rem 0.8rem; }
  .btn { min-height: 44px; }

  /* الأرقام والبطاقات */
  .stats-section { padding: 2.4rem 0; }
  .stat-box { padding: 0.6rem; }
  .promo-stat-box { padding: 1.2rem 1.1rem; }
  .track-card { padding: 1.6rem 1.2rem; border-radius: 22px; }
  .step-card { padding: 1.5rem 1.2rem; }
  .profile-card { padding: 1.3rem; }
  .tracks-grid, .steps-grid, .profiles-grid { gap: 1.2rem; }
}

/* --- ≤768px (تكملة): تبويبات النماذج، النوافذ المنبثقة، الفوتر، صفحة المشترك --- */
@media (max-width: 768px) {
  .admin-supabase-grid { grid-template-columns: 1fr; }
  .admin-supabase-overview { grid-template-columns: repeat(2, 1fr); }
  .admin-conversation-row { align-items: flex-start; flex-direction: column; }

  /* تبويبات النماذج: تمرير أفقي بدل تكديس رأسي طويل */
  .profile-tabs-wrapper { margin-bottom: 1.6rem; gap: 0.7rem; }
  .profile-tabs {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    scroll-snap-align: start;
  }
  .btn-open-filter-modal { width: 100%; }

  /* محاكي حساب ولي الأمر */
  .guardian-sim-tabs { padding: 5px; }
  .sim-tab { font-size: 0.78rem; padding: 0.7rem 0.5rem; }
  .sim-view-content { padding: 1.2rem 1rem; }
  .sim-card-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .auto-credentials-card { padding: 1rem; }
  .cred-value-wrap { flex-wrap: wrap; gap: 0.4rem; }
  .cred-value-wrap code { font-size: 0.85rem; word-break: break-all; }

  /* الأسئلة الشائعة والنداء الأخير والفوتر */
  .faq-question { padding: 1rem 1.1rem; font-size: 0.95rem; }
  .faq-answer { padding: 0 1.1rem; }
  .faq-item.active .faq-answer { padding: 0 1.1rem 1.1rem; }
  .cta-actions { gap: 0.7rem; }
  .footer-top { gap: 1.8rem; margin-bottom: 2.2rem; }
  .footer-bottom { text-align: center; }

  /* النوافذ المنبثقة والتنبيهات */
  .modal-overlay { padding: 0.9rem; }
  .modal-card {
    max-height: 88vh;
    max-height: 88dvh;
    padding: 1.6rem 1.2rem;
    border-radius: 22px;
  }
  .modal-card-wide {
    max-height: 88vh;
    max-height: 88dvh;
    padding: 1.5rem 1.1rem;
    border-radius: 22px;
  }
  .modal-close-btn { top: 0.8rem; left: 0.8rem; width: 40px; height: 40px; }
  .modal-header h3 { font-size: 1.15rem; }
  .filter-sections-container { gap: 1.1rem; }
  .filter-group-block { padding: 1rem; }
  .toast-notification { right: 1rem; left: 1rem; bottom: 1rem; padding: 0.85rem 1rem; }
  .toast-message { font-size: 0.85rem; }

  /* لوحة حساب المشترك */
  .u-quick-stats { gap: 0.55rem; }
  .u-stat-box { padding: 0.7rem 0.5rem; }
  .u-stat-num { font-size: 1.2rem; }
  .u-stat-label { font-size: 0.72rem; }

  /* صفحة المشترك (profile.html) */
  .sp-hero { padding: 2rem 0 1.7rem; }
  .sp-hero .section-title { font-size: 1.45rem; }
  .sp-section { padding: 1.8rem 0 2.6rem; }
  .sp-card { padding: 1.15rem; border-radius: 18px; }
  .sp-gate-card { padding: 1.8rem 1.15rem; border-radius: 20px; }
  .sp-gate-icon { width: 62px; height: 62px; }
  .sp-photo-frame { max-width: 300px; }
  .sp-save-bar { padding: 0.85rem 1rem; gap: 0.7rem; }
  .sp-footer-row { padding: 1.6rem 0 1rem; gap: 0.9rem; }
  .sp-mini-photo { width: 58px; height: 58px; }
}

/* --- ≤600px : هواتف صغيرة (تكديس إضافي) --- */
@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .guardian-sim-tabs { grid-template-columns: 1fr; }
  .cred-fields-grid { grid-template-columns: 1fr; }
  .demo-creds-info { grid-template-columns: 1fr; }
  .card-actions-row { grid-template-columns: 1fr; }
  .p-card-header { flex-wrap: wrap; gap: 0.5rem; }
  .filter-modal-actions { flex-direction: column-reverse; align-items: stretch; }
  .filter-modal-actions .btn { width: 100%; }
  .m-tab-btn { font-size: 0.82rem; padding: 0.55rem 0.4rem; }
  .section-title { font-size: 1.55rem; }
  .hero-title { font-size: 1.7rem; }
  .mobile-auth-item { padding-top: 0.9rem; }
}

/* --- ≤480px : الهواتف المدمجة --- */
@media (max-width: 480px) {
  .container { padding: 0 0.9rem; }
  .section { padding: 2.6rem 0; }
  .hero-section { padding: 2.2rem 0 1.8rem; }
  .hero-title { font-size: 1.55rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .section-title { font-size: 1.45rem; }
  .section-pill { font-size: 0.8rem; padding: 0.35rem 0.9rem; }
  .btn-gold-cta, .btn-outline-white { width: 100%; padding: 0.9rem 1.2rem; font-size: 1rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .track-card { border-radius: 20px; }
  .stat-box:not(:last-child)::after { display: none; }
  .sp-grid-2, .sp-grid-3 { gap: 0.7rem; }
  .sp-card-head h3 { font-size: 1rem; }
  .sp-chip-count { font-size: 0.72rem; }
  .sp-group-head .optional-badge { margin-right: 0; }
  .modal-card, .modal-card-wide { padding: 1.35rem 1rem; }
  .faq-question { font-size: 0.9rem; }

  /* الهيدر على الشاشات الضيقة: منع أي تجاوز أفقي */
  .user-logged-pill .btn-user-page { display: none; }
  .user-avatar-mini { width: 32px; height: 32px; font-size: 0.85rem; }
  .btn-user-logout { width: 34px; height: 34px; }
  .sp-guest-actions .btn-primary { font-size: 0.78rem; padding: 0.6rem 0.85rem; }
  .sp-guest-actions .btn-primary i { display: none; }
}

/* --- ≤380px : أصغر الهواتف --- */
@media (max-width: 380px) {
  .brand-logo-img { height: 40px; }
  .footer-logo .brand-logo-img { height: 50px; }
  .hero-title { font-size: 1.4rem; }
  .criteria-chip { font-size: 0.7rem; }
  .tab-btn { font-size: 0.76rem; padding: 0.45rem 0.8rem; }
  .user-logged-pill { gap: 0.35rem; }
  .header-actions { gap: 0.15rem; }
  .member-notifications { gap: 0.12rem; }
  .member-notification-link { min-width: 31px; min-height: 34px; }
  .mobile-toggle { width: 36px; height: 36px; }
}

/* ==========================================================================
   NEW SECTION: Admin Control Panel (لوحة تحكم الأدمن — admin.html)
   إحصاءات المشتركين (الإجمالي / رجال / نساء) + جدول التحكم في حالة الحسابات
   ========================================================================== */
.admin-body {
  background: var(--bg-page);
}

/* --- شريط العنوان العلوي --- */
.admin-hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 2.4rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mauve-950) 0%, var(--mauve-800) 55%, var(--mauve-600) 100%);
}
.admin-hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 620px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.38) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}
.admin-hero .container { position: relative; z-index: 1; }
.admin-hero .section-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FDE68A;
}
.admin-hero .section-title { color: #ffffff; margin: 0.9rem 0 0.6rem; }
.admin-hero .section-desc {
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 auto;
}

.admin-section { padding: 2.4rem 0 3.6rem; }

/* --- بوابة دخول الأدمن --- */
.admin-gate-card { max-width: 560px; }
.admin-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: start;
  margin-bottom: 1.2rem;
}
.admin-gate-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-gate-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.admin-gate-form label i { width: 15px; height: 15px; color: var(--mauve-500); }
.admin-gate-form .sp-gate-actions { margin-top: 0.2rem; }

/* --- بطاقات الإحصاءات (الإجمالي / رجال / نساء) --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}
.admin-stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--mauve-100);
  border-radius: 22px;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}
.admin-stat-card::after {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline-start: -12%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--mauve-500);
  opacity: 0.1;
  pointer-events: none;
}
.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--mauve-200);
  box-shadow: var(--shadow-md);
}
.admin-stat-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mauve-600), var(--mauve-900));
  box-shadow: 0 10px 22px rgba(109, 40, 217, 0.28);
}
.admin-stat-icon i { width: 26px; height: 26px; }
.admin-stat-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.admin-stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.admin-stat-num {
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}
.admin-stat-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
}
.admin-sub-active { color: #047857; }
.admin-sub-locked { color: #b91c1c; }

.admin-stat-card.is-male .admin-stat-icon {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}
.admin-stat-card.is-male .admin-stat-num { color: #1d4ed8; }
.admin-stat-card.is-female .admin-stat-icon {
  background: linear-gradient(135deg, #f472b6, #9d174d);
  box-shadow: 0 10px 22px rgba(219, 39, 119, 0.28);
}
.admin-stat-card.is-female .admin-stat-num { color: #be185d; }

/* --- لوحة قائمة المشتركين --- */
.admin-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--mauve-100);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--mauve-100);
}
.admin-panel-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.admin-panel-title i { width: 22px; height: 22px; color: var(--mauve-600); }
.admin-panel-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
}
.admin-count-badge {
  background: var(--mauve-100);
  color: var(--mauve-800);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.admin-panel-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-supabase-panel {
  margin-bottom: 1.4rem;
  background: linear-gradient(145deg, #ffffff 0%, var(--mauve-50) 100%);
  border-color: var(--mauve-100);
}

.admin-supabase-panel .admin-panel-title i {
  color: var(--mauve-600);
}

.admin-supabase-panel .admin-count-badge.is-connected {
  background: #ede9fe;
  color: var(--mauve-800);
}

.admin-ad-banner-panel { margin-bottom: 1.4rem; }
.admin-ad-banner-description {
  margin: -0.4rem 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.admin-ad-banner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.admin-ad-banner-form .admin-field {
  display: grid;
  gap: 0.35rem;
}
.admin-ad-banner-form .admin-field label {
  color: var(--text-heading);
  font-size: 0.8rem;
  font-weight: 800;
}
.admin-ad-banner-form > .admin-supabase-check,
.admin-ad-banner-footer { grid-column: 1 / -1; }
.admin-ad-banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  border-top: 1px solid var(--mauve-100);
}
.admin-ad-banner-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.admin-ad-banner-status.is-error { color: #b91c1c; }

.admin-supabase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-supabase-form {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--mauve-100);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-supabase-form .admin-field {
  display: grid;
  gap: 0.35rem;
}

.admin-supabase-form .admin-field label {
  color: var(--text-heading);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-supabase-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-body);
  font-size: 0.8rem;
}

.admin-supabase-check input {
  accent-color: var(--mauve-600);
}

.admin-supabase-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 0.76rem;
  line-height: 1.8;
}

.admin-supabase-warning svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.admin-supabase-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  align-content: start;
  padding: 0.2rem;
}

.admin-integration-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 14px;
  min-height: 96px;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--mauve-100);
  box-shadow: var(--shadow-sm);
}

.admin-integration-stat span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.admin-integration-stat strong {
  color: var(--mauve-800);
  font-size: 1rem;
}

.admin-integration-stat:first-child strong {
  color: var(--mauve-600);
}

.admin-conversation-list {
  display: grid;
  gap: 0.65rem;
}

.admin-conversation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--mauve-100);
  border-radius: 14px;
  background: #fff;
}

.admin-conversation-row div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-conversation-row small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.admin-request-status {
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-request-status.pending { background: #fef3c7; color: #92400e; }
.admin-request-status.accepted { background: #dcfce7; color: #166534; }
.admin-request-status.rejected,
.admin-request-status.cancelled { background: #fee2e2; color: #991b1b; }

.admin-empty-inline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  padding: 1rem;
  border: 1px dashed var(--mauve-200);
  border-radius: 14px;
  background: var(--mauve-50);
}

.admin-empty-inline svg {
  width: 20px;
  height: 20px;
  color: var(--mauve-500);
}
.admin-sync-hint {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-light);
}

/* --- شريط البحث والفلاتر --- */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-end;
  margin-bottom: 1.1rem;
}
.admin-toolbar .admin-field { flex: 1 1 165px; }
.admin-toolbar .admin-search { flex: 2 1 260px; }
.admin-toolbar .admin-reset-filters { flex: 0 0 auto; }
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.admin-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.admin-field label i { width: 14px; height: 14px; color: var(--mauve-500); }
.admin-field .custom-select { padding: 0.6rem 0.7rem; font-size: 0.85rem; }
.admin-search { position: relative; }
.admin-search > i {
  position: absolute;
  inset-inline-start: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-light);
  pointer-events: none;
}
.admin-search-input {
  width: 100%;
  padding: 0.72rem 1rem;
  padding-inline-start: 2.4rem;
  border: 1.5px solid var(--mauve-200);
  border-radius: 14px;
  background: var(--mauve-50);
  color: var(--text-heading);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}
.admin-search-input::placeholder { color: var(--text-light); }
.admin-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--mauve-400);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.admin-reset-filters { padding: 0.68rem 1.1rem; font-size: 0.85rem; }

/* --- جدول المشتركين --- */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--mauve-100);
  border-radius: 18px;
}
.admin-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.admin-table thead th {
  background: var(--bg-card-alt);
  color: var(--mauve-900);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: start;
  padding: 0.85rem 0.9rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--mauve-100);
}
.admin-table tbody td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(109, 40, 217, 0.07);
  color: var(--text-body);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--mauve-50); }
.admin-table tbody tr.is-locked-row { background: rgba(239, 68, 68, 0.05); }

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 190px;
}
.admin-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mauve-500), var(--mauve-800));
}
.admin-avatar.is-male { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.admin-avatar.is-female { background: linear-gradient(135deg, #f472b6, #be185d); }
.admin-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-user-meta strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-heading);
}
.admin-username {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-light);
}
.admin-cell-main {
  display: block;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
}
.admin-cell-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-light);
}

/* --- شارات الحالة والنوع --- */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.28rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.admin-badge i { width: 13px; height: 13px; }
.admin-badge.is-active { background: #dcfce7; color: #15803d; }
.admin-badge.is-locked { background: #fee2e2; color: #b91c1c; }
.admin-badge.is-male { background: #dbeafe; color: #1d4ed8; }
.admin-badge.is-female { background: #fce7f3; color: #be185d; }
.admin-mini-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
}
.admin-mini-badge.is-premium { background: var(--gold-100); color: var(--gold-600); }

/* --- أزرار التحكم في الصف --- */
.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.admin-action-btn {
  padding: 0.5rem 0.85rem;
  min-height: 36px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
}
.admin-action-btn i { width: 15px; height: 15px; }
.admin-action-btn.is-lock {
  background: #fee2e2;
  color: #b91c1c;
  border: 1.5px solid #fecaca;
}
.admin-action-btn.is-lock:hover { background: #fecaca; color: #991b1b; }
.admin-action-btn.is-unlock {
  background: #dcfce7;
  color: #15803d;
  border: 1.5px solid #bbf7d0;
}
.admin-action-btn.is-unlock:hover { background: #bbf7d0; color: #166534; }
.admin-icon-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
  background: var(--mauve-50);
  border: 1.5px solid var(--mauve-200);
  color: var(--mauve-700);
}
.admin-icon-btn:hover { background: var(--mauve-100); color: var(--mauve-800); }
.admin-icon-btn i { width: 16px; height: 16px; }

/* --- إدارة فلاتر الحسابات (رجال / نساء) --- */
.admin-filter-tabs {
  display: inline-flex;
  gap: 0.4rem;
  background: var(--bg-card-alt);
  padding: 0.35rem;
  border-radius: 14px;
  border: 1.5px solid var(--mauve-100);
}
.admin-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.admin-filter-tab i { width: 17px; height: 17px; }
.admin-filter-tab:hover { color: var(--mauve-800); }
.admin-filter-tab.active {
  background: var(--mauve-700);
  color: #fff;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.25);
}
.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
.admin-filter-tab:not(.active) .admin-tab-count {
  background: var(--mauve-100);
  color: var(--mauve-700);
}
.admin-filter-layout {
  display: grid;
  grid-template-columns: minmax(310px, 380px) 1fr;
  gap: 1.4rem;
  align-items: start;
}
.admin-filter-form {
  background: var(--bg-card-alt);
  border: 1.5px solid var(--mauve-100);
  border-radius: 18px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-sub-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}
.admin-sub-title i { width: 19px; height: 19px; color: var(--mauve-600); }
.admin-field-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.admin-filter-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
  font-family: inherit;
}
.admin-filter-form-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.admin-filter-form-actions .btn { flex: 1; }
.admin-filter-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.admin-filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 620px;
  overflow-y: auto;
  padding-left: 0.2rem;
}
.admin-filter-card {
  background: var(--bg-card);
  border: 1.5px solid var(--mauve-100);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
}
.admin-filter-card.is-custom {
  border-color: #cbd5e1;
  background: linear-gradient(to bottom, #ffffff, #faf5ff);
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.05);
}
.admin-filter-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.admin-filter-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-heading);
}
.admin-filter-card-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: auto;
}
.admin-filter-card-group i { width: 14px; height: 14px; }
.admin-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--mauve-50);
  border: 1px solid var(--mauve-150, #e9d5ff);
  color: var(--mauve-800);
  border-radius: 999px;
  padding: 0.22rem 0.6rem 0.22rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.18s ease;
}
.admin-filter-chip.is-off {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  text-decoration: line-through;
}
.admin-filter-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}
.admin-filter-chip-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}
.admin-filter-chip-btn i { width: 13px; height: 13px; }
.admin-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}
.admin-mini-badge.is-built {
  background: #f3f4f6;
  color: #64748b;
}
.admin-mini-badge.is-custom {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}
.admin-mini-badge.is-single {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.admin-icon-btn.is-danger {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
  margin-right: 0.2rem;
}
.admin-icon-btn.is-danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}
.admin-icon-btn.is-premium-action {
  color: var(--gold-600);
  background: var(--gold-100);
  border-color: var(--gold-200);
}
.admin-icon-btn.is-premium-action:hover {
  color: var(--gold-700);
  background: var(--gold-200);
}
.admin-filter-empty {
  text-align: center;
  padding: 2.4rem 1rem;
  background: var(--bg-card-alt);
  border-radius: 14px;
  border: 1.5px dashed var(--mauve-200);
}
.admin-filter-empty i {
  width: 42px;
  height: 42px;
  color: var(--mauve-300);
  margin-bottom: 0.6rem;
}
.admin-filter-empty p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* --- حالة عدم وجود نتائج --- */
.admin-empty {
  text-align: center;
  padding: 2.6rem 1.2rem;
}
.admin-empty i {
  width: 52px;
  height: 52px;
  color: var(--mauve-300);
  margin-bottom: 0.7rem;
}
.admin-empty h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}
.admin-empty p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* --- نافذة تأكيد الغلق / الفتح --- */
.admin-confirm-card {
  max-width: 470px;
  text-align: center;
}
.icon-admin-lock {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.3);
}
.icon-admin-lock.is-unlock {
  background: linear-gradient(135deg, #10b981, #065f46);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.3);
}
.icon-admin-user {
  background: linear-gradient(135deg, var(--mauve-700), var(--mauve-900));
  box-shadow: 0 10px 26px rgba(109, 40, 217, 0.3);
}
.admin-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
#adConfirmBtn.is-unlock-action {
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}

/* --- نافذة تفاصيل المشترك --- */
.admin-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}
.admin-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg-card-alt);
  border: 1.5px solid var(--mauve-100);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
}
.admin-detail-item.is-locked { background: #fef2f2; border-color: #fecaca; }
.admin-detail-item.is-active { background: #f0fdf4; border-color: #bbf7d0; }
.admin-detail-item.is-wide { grid-column: 1 / -1; }
.admin-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.admin-detail-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-heading);
  word-break: break-word;
}
.admin-details-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* --- Responsive (Admin Control Panel) --- */
@media (max-width: 1100px) {
  .admin-filter-layout { grid-template-columns: 1fr; }
  .admin-reset-filters { width: 100%; }
}

@media (max-width: 768px) {
  .admin-hero { padding: 2.1rem 0 1.7rem; }
  .admin-hero .section-title { font-size: 1.45rem; }
  .admin-section { padding: 1.8rem 0 2.6rem; }
  .admin-stats-grid { gap: 0.8rem; }
  .admin-stat-card { padding: 1.1rem 1rem; border-radius: 18px; gap: 0.8rem; }
  .admin-stat-icon { width: 48px; height: 48px; border-radius: 15px; }
  .admin-stat-icon i { width: 22px; height: 22px; }
  .admin-stat-num { font-size: 1.7rem; }
  .admin-panel { padding: 1.1rem; border-radius: 20px; }
  .admin-ad-banner-form { grid-template-columns: 1fr; }
  .admin-panel-title h2 { font-size: 1rem; }
  .admin-col-md, .admin-col-lg { display: none; }
  .admin-table { min-width: 620px; font-size: 0.82rem; }
  .admin-table thead th, .admin-table tbody td { padding: 0.7rem 0.6rem; }
  .admin-action-btn { min-height: 40px; padding: 0.5rem 0.65rem; }
  .admin-action-btn span { display: none; }
  .admin-icon-btn { width: 40px; height: 40px; min-height: 40px; }
  .admin-details-actions .btn { flex: 1; }
  .admin-confirm-actions .btn { flex: 1; }
  .admin-details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .admin-toolbar .admin-field,
  .admin-toolbar .admin-search,
  .admin-toolbar .admin-reset-filters { width: 100%; flex: 1 1 100%; }
  .admin-stat-card { gap: 0.7rem; }
  .admin-stat-num { font-size: 1.5rem; }
  .admin-stat-label { font-size: 0.78rem; }
  .admin-avatar { width: 36px; height: 36px; border-radius: 12px; font-size: 0.9rem; }
  .admin-user-cell { min-width: 150px; }
  .admin-panel-tools { width: 100%; justify-content: space-between; }
  .admin-sync-hint { font-size: 0.72rem; }
}

/* --- الهواتف في الوضع الأفقي --- */
@media (max-height: 540px) and (max-width: 900px) {
  .main-nav { padding-top: 1rem; }
  .nav-list { gap: 0.65rem; }
  .mobile-auth-item { padding-top: 0.7rem; gap: 0.5rem; }
}

/* أيقونة بوابة «الحساب مغلق» (تُبنى من js/profile.js) */
.gate-icon-locked {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.3);
}

/* رابط لوحة تحكم الأدمن في فوتر الصفحة الرئيسية */
.footer-admin-link { margin-top: 0.5rem; }
.footer-admin-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mauve-600);
}
.footer-admin-link a:hover { color: var(--mauve-800); text-decoration: underline; }

/* ==========================================================================
   Danger Zone — حذف البروفايل نهائياً (حق المشترك)
   ========================================================================== */
.sp-danger-card {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, var(--bg-card) 100%);
}
.sp-danger-card .sp-card-head i { color: #dc2626; }
.sp-danger-card .sp-card-head h3 { color: #b91c1c; }
.sp-danger-card .sp-hint strong { color: #b91c1c; }

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  border: none;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}
.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* نافذة تأكيد الحذف النهائي */
.sp-delete-card { max-width: 540px; }
.sp-delete-icon {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.32);
}
.sp-delete-done-icon {
  background: linear-gradient(135deg, #10b981, #065f46);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.32);
}
.sp-delete-warning {
  background: #fef2f2;
  border: 1.5px dashed #fca5a5;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
}
.sp-delete-warning > p { font-size: 0.9rem; color: #7f1d1d; margin-bottom: 0.6rem; }
.sp-delete-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sp-delete-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #991b1b;
  font-weight: 600;
  line-height: 1.6;
}
.sp-delete-list li i { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 0.25rem; color: #dc2626; }
.sp-delete-final-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #b91c1c;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  margin: 0;
}
.sp-delete-final-note i { width: 17px; height: 17px; flex: 0 0 auto; }
.sp-delete-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.sp-delete-busy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mauve-700);
  margin: 0.9rem 0 0;
}
.sp-delete-busy i { width: 16px; height: 16px; animation: sp-spin 1s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }
.sp-delete-done { text-align: center; padding: 0.5rem 0 0.2rem; }
.sp-delete-done h3 { font-size: 1.25rem; font-weight: 800; color: var(--text-heading); margin-bottom: 0.5rem; }
.sp-delete-done p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
  .sp-delete-actions .btn { width: 100%; }
}

.premium-body { min-height: 100vh; background: #f8f7fc; }
.premium-main { padding: 3.5rem 0 5rem; }
.premium-intro { text-align: center; }
.premium-intro .section-pill { display: inline-flex; align-items: center; gap: 0.4rem; }
.premium-intro .section-pill i { width: 16px; height: 16px; }
.premium-intro h1 { margin: 1rem 0 0.55rem; color: var(--text-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.premium-intro p { color: var(--text-muted); line-height: 1.8; }
.premium-panel { max-width: 850px; margin: 2rem auto 0; }
.premium-message, .premium-status-card, .premium-trial-card, .premium-purchase-card {
  border: 1px solid #e8e3f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(50, 35, 86, 0.08);
  padding: clamp(1.15rem, 4vw, 2rem);
}
.premium-message { text-align: center; color: var(--text-muted); }
.premium-message h2 { color: var(--text-heading); margin: 0 0 0.5rem; }
.premium-error { border-color: #fecaca; }
.premium-status-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.premium-status-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 17px;
  color: #8b5cf6;
  background: #f3e8ff;
}
.premium-status-icon i { width: 26px; height: 26px; }
.premium-status-card h2, .premium-trial-card h2, .premium-purchase-card h2 {
  margin: 0 0 0.4rem;
  color: var(--text-heading);
  font-size: 1.2rem;
}
.premium-status-card p, .premium-trial-card p, .premium-purchase-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}
.premium-trial-card, .premium-purchase-card { display: grid; gap: 1rem; margin-top: 1rem; }
.premium-trial-card { border-color: #e9d5ff; background: linear-gradient(135deg, #fff, #faf5ff); }
.premium-eyebrow { display: inline-block; color: #7e22ce; font-weight: 800; font-size: 0.83rem; margin-bottom: 0.45rem; }
.premium-progress {
  height: 12px;
  margin-top: 0.8rem;
  overflow: hidden;
  border-radius: 99px;
  background: #ede9f5;
}
.premium-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
  transition: width 0.25s ease;
}
.premium-phone-label { font-weight: 700; color: var(--text-heading); }
.premium-phone-input { width: 100%; max-width: 420px; direction: ltr; text-align: left; }
.premium-purchase-card small { color: var(--text-muted); }
.premium-purchase-card .btn, .premium-trial-card .btn { justify-self: start; }
.premium-pending-checkout { width: fit-content; }
.premium-notice { min-height: 1.5rem; margin: 1rem 0 0; color: #5b21b6; font-weight: 700; line-height: 1.7; }

@media (max-width: 600px) {
  .premium-main { padding: 2rem 0 3rem; }
  .premium-panel { width: min(100% - 1.25rem, 850px); }
  .premium-status-card { align-items: flex-start; }
  .premium-trial-card .btn, .premium-purchase-card .btn, .premium-pending-checkout { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Verification Badges & User Status (نظام توثيق الحسابات)
   ========================================================================== */
.user-status-badges-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-unverified {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-tier-1 {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-tier-2 {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-tier-3 {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1);
}

.badge-premium {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  border: 1px solid #f59e0b;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
