/**
 * HUMSAFARLIFE & FINDNIKAH — COMMERCIAL MATRIMONIAL DESIGN SYSTEM
 * Complete Visual Redesign (Mobile, Tablet, Laptop, Desktop)
 */

/* ==========================================================================
   1. RESET & CSS VARIABLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100% !important;
  height: 100dvh !important;
  overflow: hidden !important;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-page-bg);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* Authentication pages exception (allows page-level scrolling on small screens/keyboards) */
body.auth-page-body {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  display: block !important;
}

html:has(body.auth-page-body) {
  overflow-y: auto !important;
  height: auto !important;
}

/* Universal Text Decoration & Focus Reset (Eliminates all unwanted link underlines across all elements) */
*,
*::before,
*::after {
  text-decoration-skip-ink: none;
}

a,
a *,
a:hover,
a:hover *,
a:focus,
a:focus *,
a:active,
a:visited,
button,
button *,
.btn,
.btn *,
.btn:hover,
.btn:hover *,
.menu-item,
.menu-item *,
.nav-link,
.nav-link *,
.tab-pill,
.tab-pill *,
.bottom-nav-item,
.bottom-nav-item *,
.swipe-action-circle,
.swipe-action-circle *,
.deck-action-btn,
.deck-action-btn *,
.info-chip,
.info-chip *,
.profile-card-name,
.profile-card-name *,
.brand-logo-link,
.brand-logo-link *,
.proposal-inbox-card,
.proposal-inbox-card * {
  text-decoration: none !important;
  outline: none;
}

/* Universal Button Modern Reset (Eliminates old bevel native buttons across all browsers) */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* Responsive visibility aliases */
.desktop-only { display: block !important; }
.mobile-only { display: none !important; }
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
}

:root {
  --font-sans: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Typography Scale */
  --font-size-2xs: 0.6875rem;
  /* 11px */
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3rem;
  /* 48px */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Neutral Spectrum */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --color-white: #FFFFFF;
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-warning: #F59E0B;
  --color-warning-bg: #FFFBEB;
  --color-danger: #EF4444;
  --color-danger-bg: #FEF2F2;

  --border-light: #E2E8F0;
  --border-subtle: #F8FAFC;
  --brand-border-subtle: #F1F5F9;

  /* Geometry & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-2xl: 34px;
  --radius-full: 9999px;

  /* Elevations */
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  --shadow-card: var(--brand-card-shadow);
  --shadow-card-hover: var(--brand-card-shadow-hover);
  --shadow-popup: 0 20px 40px -8px rgba(15, 23, 42, 0.16);

  /* Dimensions & Shell Geometry */
  --header-height-mobile: 60px;
  --header-height-desktop: 76px;
  --header-height: 76px;
  --bottom-nav-height: 62px;
  --container-max-width: 1440px;
  --sidebar-left-width: 260px;
  --sidebar-right-width: 290px;
  --layout-gap: 16px;
  --layout-padding-x: 16px;
  --layout-padding-y: 8px;
}

/* ==========================================================================
   2. APP CONTAINER & RESPONSIVE GRID
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .app-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1280px) {
  .app-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.main-content {
  flex: 1;
  min-width: 0;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
}

@media (min-width: 1024px) {
  .main-content {
    padding-bottom: 56px;
  }
}

/* ==========================================================================
   VERTICAL SINGLE-COLUMN PROFILE DISCOVERY (App-Like, Native Experience - NO GRIDS)
   ========================================================================== */
.grid-profiles,
.discovery-vertical-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.grid-profiles.wide-view {
  max-width: 640px;
}

/* Horizontal BioData List View */
.list-profiles {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   3. LUXURY APPLICATION HEADER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height-mobile);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  transition: all 250ms ease;
}

@media (min-width: 1024px) {
  .app-header {
    height: var(--header-height-desktop);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 200ms ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

@media (min-width: 1024px) {
  .brand-logo-img {
    height: 46px;
  }
}

.brand-trust-pill {
  display: none;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-tint);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

@media (min-width: 860px) {
  .brand-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
}

/* Header Search Container & Mobile Adaptations */
.header-search-container {
  display: none;
}

@media (min-width: 900px) {
  .header-search-container {
    display: flex;
    flex: 1;
    max-width: 520px;
    margin: 0 16px;
  }
}

.header-upgrade-btn {
  display: none !important;
}

@media (min-width: 768px) {
  .header-upgrade-btn {
    display: inline-flex !important;
  }
}

.d-md-none {
  display: inline-flex !important;
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
}

/* Header Right Action Group & Buttons */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-right-actions {
    gap: 10px;
  }
}

.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-page-bg);
  border: 1px solid var(--brand-border);
  text-decoration: none;
  color: var(--text-main);
  transition: all 180ms ease;
  flex-shrink: 0;
}

.header-icon-btn:hover {
  background: var(--brand-border-subtle);
  transform: scale(1.05);
}

.header-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-profile-btn {
    padding: 4px 10px 4px 4px;
    background: var(--brand-page-bg);
    border: 1px solid var(--brand-border);
  }
}

.header-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-primary);
  display: block;
}

.header-dropdown-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: 290px;
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 56px - var(--bottom-nav-height, 62px) - env(safe-area-inset-bottom, 0px) - 16px);
  max-height: calc(100vh - 56px - var(--bottom-nav-height, 62px) - env(safe-area-inset-bottom, 0px) - 16px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
  z-index: 2000;
  padding: 0 0 16px 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  /* Scrollbar hiding across browsers */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.header-dropdown-menu::-webkit-scrollbar,
#profileMenu::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.profile-menu-section-title {
  padding: 8px 16px 3px 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: var(--text-main);
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus {
  background-color: #f8fafc;
  color: var(--brand-primary);
}

.profile-menu-divider {
  border-top: 1px solid var(--border-light);
  margin: 4px 0;
}

@media (max-width: 767px) {
  .app-header {
    height: 56px;
  }

  .app-header .app-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .brand-logo-img {
    height: 32px !important;
    max-width: 140px !important;
  }

  .brand-logo-wrap {
    gap: 6px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  /* Profile Dropdown Menu in Mobile: Smooth Touch Scroll & Completely Hidden Scrollbar */
  .header-dropdown-menu {
    top: 48px;
    width: 290px;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 56px - var(--bottom-nav-height, 62px) - env(safe-area-inset-bottom, 0px) - 16px);
    max-height: calc(100vh - 56px - var(--bottom-nav-height, 62px) - env(safe-area-inset-bottom, 0px) - 16px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    z-index: 2000;
    padding: 0 0 16px 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .header-dropdown-menu::-webkit-scrollbar,
  #profileMenu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

/* Responsive Visibility Utility Classes */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

@media (max-width: 991px) {
  .d-lg-none {
    display: flex !important;
  }

  .d-lg-block {
    display: none !important;
  }

  .d-lg-flex {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 200ms ease;
  position: relative;
}

.nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
}

.nav-link.active {
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
  font-weight: 700;
}

.nav-link .badge-counter {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

/* Mobile Bottom Navigation Dock */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--brand-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  position: relative;
  transition: all 180ms ease;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.bottom-nav-item.active {
  color: var(--brand-primary);
  font-weight: 700;
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background-color: var(--brand-primary);
  border-radius: 0 0 4px 4px;
}

/* ==========================================================================
   4. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
}

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

.btn-primary {
  background: var(--brand-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--brand-primary-glow);
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 6px 20px var(--brand-primary-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--brand-primary-light);
  color: var(--brand-primary);
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: var(--brand-badge-bg);
  color: var(--brand-primary-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--brand-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background-color: var(--brand-border-subtle);
  color: var(--text-primary);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15px;
  border-radius: var(--radius-full);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   5. PROFILE CARDS (Commercial Matrimonial Presentation)
   ========================================================================== */
.card {
  background-color: var(--brand-card-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  height: auto;
  min-height: min-content;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.card-clipped {
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-primary-tint);
}

/* Redesigned Matrimonial Profile Card */
.profile-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  height: auto;
  min-height: min-content;
  width: 100%;
  box-sizing: border-box;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: var(--brand-primary-tint);
}

.profile-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: #0F172A;
  overflow: hidden;
}

.profile-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal BioData Card (Matrimonial Standard) */
.profile-card-horizontal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  height: auto;
  min-height: min-content;
  width: 100%;
  box-sizing: border-box;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.profile-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: var(--brand-primary-tint);
}

.profile-card-horizontal .profile-card-image-wrap {
  aspect-ratio: auto;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

@media (max-width: 768px) {
  .profile-card-horizontal {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
  }

  .profile-card-horizontal .profile-card-image-wrap {
    aspect-ratio: 16 / 11;
    height: auto;
    min-height: 0;
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

.profile-card:hover .profile-card-image {
  transform: scale(1.04);
}

.profile-card-image.blurred {
  filter: blur(14px);
  transform: scale(1.1);
}

/* Photo Vignette Overlay */
.profile-card-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 40%, rgba(15, 23, 42, 0.85) 100%);
  pointer-events: none;
}

/* Top Badges */
.badge-verified-shield {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.badge-premium-crown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

/* Floating Compatibility Harmony Pill */
.harmony-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #10B981;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}

/* Photo Bottom Details within Vignette */
.profile-card-overlay-text {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  color: #FFFFFF;
  pointer-events: none;
}

.profile-card-name-line {
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
}

.profile-card-subline {
  font-size: 12.5px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  margin-top: 2px;
}

/* Card Body Details */
.profile-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  box-sizing: border-box;
}

.profile-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.fact-chip {
  background-color: var(--brand-primary-subtle);
  border: 1px solid var(--brand-border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  box-sizing: border-box;
}

.profile-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--brand-border-subtle);
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   6. FORMS, INPUTS & CONTROLS
   ========================================================================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 180ms ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Tabs Navigation Pills */
.tab-pill,
.profile-tab-pill,
.plan-tab-btn,
.support-segment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-full, 9999px) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--border-light, #e2e8f0);
  background: #ffffff;
  color: var(--text-secondary, #475569);
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: center;
  user-select: none;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  line-height: 1.3 !important;
}

.tab-pill:hover,
.profile-tab-pill:hover,
.plan-tab-btn:hover:not(.active),
.support-segment-btn:hover:not(.active) {
  background: #f1f5f9;
  color: var(--brand-primary, #4338ca);
  border-color: #cbd5e1;
}

.tab-pill.active,
.profile-tab-pill.active,
.plan-tab-btn.active,
.support-segment-btn.active {
  background: linear-gradient(135deg, var(--brand-primary, #4338ca), #3730a3) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.32) !important;
  font-weight: 700;
}

.tab-pill .tab-pill-icon,
.profile-tab-pill .tab-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.tab-pill .tab-pill-text,
.profile-tab-pill .tab-pill-text {
  display: inline-block;
  white-space: nowrap;
}

.tab-pill .tab-pill-badge,
.profile-tab-pill .tab-pill-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tab-pill.active .tab-pill-badge,
.profile-tab-pill.active .tab-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.tab-pill .tab-pill-count-badge,
.profile-tab-pill .tab-pill-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
  margin-left: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tab-pill.active .tab-pill-count-badge,
.profile-tab-pill.active .tab-pill-count-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   TABS HORIZONTAL SCROLLER WITH LEFT & RIGHT ARROWS
   Smooth overflow scrolling with navigation direction icons on both sides
   ========================================================================== */
.tabs-scroller-wrap,
.profile-tabs-scroller {
  background: #FFFFFF !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  border-radius: var(--radius-xl, 16px) !important;
  padding: 6px 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tabs-scroll-content {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 2px 4px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.tabs-scroll-content::-webkit-scrollbar {
  display: none;
}

.tabs-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-main);
  transition: all 180ms ease;
  z-index: 5;
  outline: none;
  padding: 0;
}

.tabs-nav-btn:hover:not([disabled]):not(.is-disabled) {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  transform: scale(1.08);
  box-shadow: 0 4px 12px var(--brand-primary-glow);
}

.tabs-nav-btn.prev-btn {
  margin-right: 6px;
}

.tabs-nav-btn.next-btn {
  margin-left: 6px;
}

.tabs-nav-btn[disabled],
.tabs-nav-btn:disabled,
.tabs-nav-btn.is-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.tabs-nav-btn.is-hidden {
  display: none !important;
}

/* ==========================================================================
   PROPOSALS & ACTIVITY INBOX (Clean, Simple, App-Like Redesign)
   ========================================================================== */
/* ==========================================================================
   PROPOSALS & ACTIVITY INBOX (Clean, Simple, Native App List UI)
   ========================================================================== */
.inbox-simple-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 860px;
}

.inbox-simple-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  position: relative;
  height: auto;
  min-height: min-content;
  box-sizing: border-box;
  width: 100%;
}

.inbox-simple-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: var(--brand-primary-tint);
}

.inbox-item-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
}

.inbox-item-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid var(--border-light);
}

.inbox-online-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #FFFFFF;
}

.inbox-verified-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0284c7;
  color: #FFFFFF;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
  font-weight: 700;
}

.inbox-item-content {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
  height: auto;
  box-sizing: border-box;
}

.inbox-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  width: 100%;
  box-sizing: border-box;
}

.inbox-item-name-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.inbox-item-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item-id {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: monospace;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.inbox-item-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.inbox-item-subline {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  font-weight: 400;
}

.inbox-item-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.inbox-status-tag {
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.inbox-status-tag.tag-match {
  background: #fff1f2;
  color: #e11d48;
}

.inbox-status-tag.tag-pending {
  background: #fffbeb;
  color: #d97706;
}

.inbox-status-tag.tag-accepted {
  background: #ecfdf5;
  color: #047857;
}

.inbox-status-tag.tag-declined {
  background: #f1f5f9;
  color: #64748b;
}

.inbox-status-tag.tag-contact {
  background: #eff6ff;
  color: #1d4ed8;
}

.inbox-status-tag.tag-visitor {
  background: #f5f3ff;
  color: #7c3aed;
}

.inbox-status-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
  justify-content: flex-end;
}

.inbox-action-btn {
  border-radius: 9999px !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .inbox-simple-item {
    padding: 10px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .inbox-item-avatar-wrap {
    width: 48px;
    height: 48px;
  }

  .inbox-item-avatar {
    width: 48px;
    height: 48px;
  }

  .inbox-item-name {
    font-size: 14px;
  }

  .inbox-item-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    padding-top: 6px;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
  }

  .inbox-action-btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    padding: 6px 10px !important;
  }
}

/* ==========================================================================
   7. MODALS & BOTTOM SHEETS
   ========================================================================== */
.modal-backdrop,
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: rgba(11, 15, 25, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 250ms ease;
  padding: 0;
  box-sizing: border-box;
}

.modal-backdrop.show,
.modal-overlay.show {
  display: flex !important;
  opacity: 1 !important;
}

@media (min-width: 768px) {

  .modal-backdrop,
  .modal-overlay {
    align-items: center !important;
    padding: 24px !important;
  }
}

.modal-dialog,
.modal-card {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-popup);
  height: auto;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {

  .modal-dialog,
  .modal-card {
    border-radius: var(--radius-2xl);
    transform: translateY(20px);
  }
}

@media (max-width: 767px) {

  .modal-dialog,
  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: calc(100vh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
  }
}

.modal-backdrop.show .modal-dialog,
.modal-overlay.show .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--brand-border-subtle);
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background-color: var(--brand-border);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 140px);
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  background-color: var(--brand-page-bg);
  box-sizing: border-box;
  width: 100%;
}

/* ==========================================================================
   8. TOAST NOTIFICATIONS & UTILITIES
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 32px);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toast-container {
    bottom: 28px;
    right: 28px;
  }
}

.toast {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.12);
  border-left: 5px solid var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-primary);
  pointer-events: auto;
  animation: slideInToast 250ms ease forwards;
}

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

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

.toast.toast-warning {
  border-left-color: var(--color-warning);
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   9. BRAND HERO BOX & DISCOVERY FEED
   ========================================================================== */
.theme-hero-box {
  background: var(--brand-hero-gradient);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  margin: 20px 0 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
}

.theme-hero-box h1,
.theme-hero-box h2,
.theme-hero-box h3 {
  color: #FFFFFF !important;
}

.theme-hero-box p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Stories Rail & Circular Highlights */
.stories-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

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

.story-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease;
}

.story-ring.seen {
  background: var(--brand-border);
}

.story-ring:hover {
  transform: scale(1.06);
}

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

.story-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
  display: block;
}

/* ==========================================================================
   10. HEADER BRANDING & BADGES
   ========================================================================== */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-badge-tag {
  display: none;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary-tint);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-badge-tag {
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================================
   11. PROFILE CARD METADATA & CHIPS
   ========================================================================== */
.photo-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.profile-id-tag {
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.profile-card-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 150ms ease;
}

.profile-card-name:hover {
  color: var(--brand-primary);
}

.profile-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-chip {
  font-size: 11.5px;
  font-weight: 500;
  background: var(--brand-page-bg);
  border: 1px solid var(--brand-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   12. RESPONSIVE MULTI-COLUMN LAYOUTS
   ========================================================================== */
/* Profile Detail View Layout */
.profile-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .profile-layout-grid {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
  }
}

/* Search Page Layout */
.search-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .search-layout-grid {
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
  }
}

.desktop-filter-sidebar {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .desktop-filter-sidebar {
    display: block;
  }
}

/* ==========================================================================
   ANDROID-APP NATIVE CHAT & MESSAGING SUITE
   Faithfully mirrors Android ChatListActivity.java & ChatRoomActivity.java
   ========================================================================== */

@media (max-width: 991px) {
  .chat-page-layout {
    height: calc(100vh - var(--header-height-mobile) - var(--bottom-nav-height)) !important;
    height: calc(100dvh - var(--header-height-mobile) - var(--bottom-nav-height)) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Full-Screen Native Android Chat Room Experience (Fixed Head & Fixed Composer) */
  .chat-page-layout.is-chat-room-layout {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 1000 !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

.chat-main-viewport {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.android-chat-shell {
  display: grid;
  grid-template-columns: 1fr;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .android-chat-shell {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .android-back-btn {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .android-chat-shell {
    border-radius: 0;
    border: none;
    box-shadow: none;
    height: 100% !important;
  }

  .android-chat-shell.list-mode-active .android-chat-list-pane {
    display: flex !important;
    width: 100%;
    height: 100%;
  }

  .android-chat-shell.list-mode-active .android-chat-room-pane {
    display: none !important;
  }

  .android-chat-shell.room-mode-active .android-chat-list-pane {
    display: none !important;
  }

  .android-chat-shell.room-mode-active .android-chat-room-pane {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  .is-chat-room-layout .android-messages-thread {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .is-chat-room-layout .android-chat-composer,
  .is-chat-room-layout .chat-locked-composer-bar,
  .is-chat-room-layout .chat-status-notice-bar {
    position: relative !important;
    bottom: 0 !important;
    flex-shrink: 0 !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    z-index: 50 !important;
  }
}

/* Chat List Pane */
.android-chat-list-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #FFFFFF;
  border-right: 1px solid var(--border-light);
}

.chat-list-topbar {
  padding: 16px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.chat-conversations-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none !important;
  background: #FFFFFF;
  transition: background 150ms ease;
  cursor: pointer;
}

.chat-contact-item:hover,
.chat-contact-item.is-selected {
  background: var(--brand-page-bg);
}

.chat-contact-item.is-selected {
  border-left: 3px solid var(--brand-primary);
}

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

.chat-contact-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-light);
}

.chat-online-indicator {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: #10B981;
  border: 2.5px solid #FFFFFF;
}

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

.chat-contact-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chat-contact-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-contact-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

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

.chat-contact-lastmsg {
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.chat-unread-badge {
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}

/* Chat Room Pane (Native Android Action Bar + Thread + Sticky Composer) */
.android-chat-room-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #F8FAFC;
  position: relative;
}

.android-chatroom-header {
  padding: 8px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  z-index: 20;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  min-height: 54px;
}

.android-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none !important;
  background: transparent;
  transition: background 150ms ease;
  flex-shrink: 0;
}

.android-back-btn:hover {
  background: var(--border-subtle);
}

.chatroom-header-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatroom-header-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Messages Scroll Thread (Only this area scrolls when viewing messages) */
.android-messages-thread {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F1F5F9;
}

.chat-encryption-pill {
  font-size: 11px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
  font-weight: 500;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}

.chat-bubble-row.is-me {
  justify-content: flex-end;
}

.chat-bubble-row.is-them {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  word-break: break-word;
}

.chat-bubble-row.is-them .chat-bubble {
  background: #FFFFFF;
  color: var(--text-main);
  border-radius: 18px 18px 18px 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-bubble-row.is-me .chat-bubble {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-radius: 18px 18px 4px 18px;
}

.chat-bubble-text {
  margin-bottom: 3px;
}

.chat-bubble-time {
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0.8;
}

.chat-bubble-row.is-them .chat-bubble-time {
  color: var(--text-muted);
}

.chat-bubble-row.is-me .chat-bubble-time {
  color: rgba(255, 255, 255, 0.85);
}

/* Chat Input Bar (Always Fixed at Bottom) */
.android-chat-composer {
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  z-index: 20;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.composer-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.composer-icon-btn:hover {
  color: var(--brand-primary);
  background: var(--border-subtle);
}

.android-chat-input {
  flex: 1;
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 9px 15px;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: all 180ms ease;
  min-width: 0;
}

.android-chat-input:focus {
  background: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.android-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--brand-primary-glow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.android-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px var(--brand-primary-glow);
}

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

/* ==========================================================================
   LOCKED CHAT COMPOSER BAR & BOTTOM NOTICE UI
   ========================================================================== */
.chat-locked-composer-bar {
  flex-shrink: 0;
  background: #ffffff;
  background: linear-gradient(180deg, #fffdf8 0%, #fff9ec 100%);
  border-top: 1.5px solid #fde68a;
  box-shadow: 0 -4px 18px rgba(217, 119, 6, 0.08);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom, 12px)) 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
  width: 100%;
}

.chat-locked-composer-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.chat-locked-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
  border: 1px solid rgba(253, 224, 71, 0.8);
}

.chat-locked-text-wrap {
  min-width: 0;
  flex: 1;
}

.chat-locked-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #78350f;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 2px;
}

.chat-locked-desc {
  font-size: 11.5px;
  color: #92400e;
  line-height: 1.35;
  opacity: 0.92;
}

.chat-locked-desc span {
  font-weight: 600;
  color: #b45309;
}

.chat-locked-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border-radius: var(--radius-full, 9999px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
  box-sizing: border-box;
}

.chat-locked-cta-btn:hover {
  opacity: 0.96;
  box-shadow: 0 5px 16px rgba(217, 119, 6, 0.38);
}

.chat-locked-cta-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.chat-status-notice-bar {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom, 12px)) 16px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  z-index: 50;
}

.chat-status-notice-bar.is-blocked {
  background: #fff1f2;
  color: #be123c;
  border-top: 1.5px solid #fecdd3;
}

.chat-status-notice-bar.is-inactive {
  background: #fef2f2;
  color: #991b1b;
  border-top: 1.5px solid #fee2e2;
}

/* Tablet & Desktop Layout */
@media (min-width: 768px) {
  .chat-locked-composer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
  }
  .chat-locked-composer-content {
    flex: 1;
    width: auto;
  }
  .chat-locked-cta-btn {
    width: auto;
    flex-shrink: 0;
    padding: 9px 22px;
    font-size: 13px;
  }
}

/* ==========================================================================
   13. UTILITY CLASSES & HELPERS
   ========================================================================== */
@media (max-width: 991px) {
  .d-lg-none {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }
}

.d-md-inline {
  display: none !important;
}

@media (min-width: 768px) {
  .d-md-inline {
    display: inline !important;
  }
}

.badge-dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 14px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

.thumb-photo {
  transition: all 150ms ease;
}

.thumb-photo:hover {
  opacity: 0.85;
}

.wizard-step {
  transition: opacity 200ms ease;
}

/* ==========================================================================
   14. UNIFIED MATRIMONIAL VIEWPORT SHELL (PC, Tablet & Mobile App Parity)
   - Zero outer-window scrollbar across ALL pages
   - Fixed, perfectly stable Left (260px) & Right (290px) Sidebars
   - Center main area adapts flexibly with independent smooth internal scrolling
   - 100% responsive across Zoom-in, Zoom-out, PC, Laptop, Tablet & Mobile
   ========================================================================== */
.matrimony-layout,
.matrimony-layout.page-deck-locked,
.matrimony-layout.chat-page-layout,
.matrimony-layout.profile-detail-view-layout {
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: var(--layout-padding-y) var(--layout-padding-x) !important;
  height: calc(100vh - var(--header-height-desktop)) !important;
  height: calc(100dvh - var(--header-height-desktop)) !important;
  max-height: calc(100dvh - var(--header-height-desktop)) !important;
  display: grid !important;
  grid-template-columns: var(--sidebar-left-width) minmax(0, 1fr) var(--sidebar-right-width) !important;
  gap: var(--layout-gap) !important;
  align-items: stretch !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  flex: 1 1 auto;
}

/* 2-Column Variant (For Chat, Profile View, Profile Edit, Settings, etc. when right sidebar is omitted) */
.matrimony-layout.has-no-right {
  grid-template-columns: var(--sidebar-left-width) minmax(0, 1fr) !important;
}

/* Left Sidebar: Fixed Width & Position Across ALL Pages (Never shrinks, never jumps) */
.sidebar-left {
  width: var(--sidebar-left-width) !important;
  min-width: var(--sidebar-left-width) !important;
  max-width: var(--sidebar-left-width) !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(99, 102, 241, 0.25) transparent !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  position: static !important;
  padding-bottom: 24px !important;
}

.sidebar-left::-webkit-scrollbar {
  width: 4px !important;
  display: block !important;
}

.sidebar-left::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25) !important;
  border-radius: 4px !important;
}

/* Right Sidebar: Fixed Width & Position Across ALL Pages */
.sidebar-right {
  width: var(--sidebar-right-width) !important;
  min-width: var(--sidebar-right-width) !important;
  max-width: var(--sidebar-right-width) !important;
  flex-shrink: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(99, 102, 241, 0.25) transparent !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  position: static !important;
  padding-bottom: 24px !important;
}

.sidebar-right::-webkit-scrollbar {
  width: 4px !important;
  display: block !important;
}

.sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25) !important;
  border-radius: 4px !important;
}

/* Center Main Content Viewport: Adaptive & Independently Scrollable */
.main-content-feed {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(67, 56, 202, 0.22) transparent;
  padding-right: 2px;
}

.main-content-feed::-webkit-scrollbar {
  width: 6px;
}

.main-content-feed::-webkit-scrollbar-track {
  background: transparent;
}

.main-content-feed::-webkit-scrollbar-thumb {
  background: rgba(67, 56, 202, 0.22);
  border-radius: 9999px;
}

.main-content-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(67, 56, 202, 0.45);
}

/* Responsive Zoom / Laptop Breakpoint (1024px to 1240px) */
@media (max-width: 1240px) {
  :root {
    --sidebar-left-width: 250px;
    --sidebar-right-width: 270px;
    --layout-gap: 14px;
    --layout-padding-x: 12px;
  }

  .matrimony-layout {
    grid-template-columns: var(--sidebar-left-width) minmax(0, 1fr) !important;
  }

  .sidebar-right {
    display: none !important;
  }
}

/* Tablet Portrait & Landscape Breakpoint (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  :root {
    --sidebar-left-width: 235px;
    --layout-gap: 12px;
    --layout-padding-x: 10px;
  }

  .matrimony-layout {
    grid-template-columns: var(--sidebar-left-width) minmax(0, 1fr) !important;
  }

  .sidebar-right {
    display: none !important;
  }
}

/* Full Mobile App Experience (< 768px) */
@media (max-width: 767px) {

  .matrimony-layout,
  .matrimony-layout.has-no-right,
  .matrimony-layout.page-deck-locked,
  .matrimony-layout.chat-page-layout:not(.is-chat-room-layout) {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: calc(100vh - var(--header-height-mobile) - var(--bottom-nav-height)) !important;
    height: calc(100dvh - var(--header-height-mobile) - var(--bottom-nav-height)) !important;
    max-height: calc(100dvh - var(--header-height-mobile) - var(--bottom-nav-height)) !important;
    padding: 4px 6px 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Profile Details View (No Bottom Nav Dock — full height down to phone bottom) */
  .matrimony-layout.profile-detail-view-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: calc(100vh - var(--header-height-mobile)) !important;
    height: calc(100dvh - var(--header-height-mobile)) !important;
    max-height: calc(100dvh - var(--header-height-mobile)) !important;
    padding: 4px 8px 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Full-Screen Native Android Chat Room Experience (Fixed Head & Fixed Composer on Mobile) */
  .matrimony-layout.chat-page-layout.is-chat-room-layout {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 1000 !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .is-chat-room-layout .chat-main-viewport,
  .is-chat-room-layout .android-chat-shell,
  .is-chat-room-layout .android-chat-room-pane {
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .is-chat-room-layout .android-chatroom-header {
    flex-shrink: 0 !important;
    height: 56px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border-light) !important;
    z-index: 20 !important;
  }

  .is-chat-room-layout .android-messages-thread {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 14px !important;
  }

  .is-chat-room-layout .android-chat-composer {
    flex-shrink: 0 !important;
    background: #FFFFFF !important;
    border-top: 1px solid var(--border-light) !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 8px)) !important;
    z-index: 50 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .is-chat-room-layout .chat-locked-composer-bar,
  .is-chat-room-layout .chat-status-notice-bar {
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
    z-index: 50 !important;
  }

  .sidebar-left,
  .sidebar-right {
    display: none !important;
  }

  .main-content-feed {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 4px 6px 12px 6px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Zero bottom gap for swipe deck pages and reels */
  .page-deck-locked .main-content-feed,
  .matrimony-layout.page-deck-locked .main-content-feed,
  .page-reels-layout .main-content-feed {
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Clearance only for profile details sticky action bar */
  .profile-detail-view-layout .main-content-feed {
    padding: 4px 6px 60px 6px !important;
  }

  .app-header.chat-room-active,
  .app-header.profile-page-header {
    display: none !important;
  }
}

.side-menu-card {
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-subtle);
  overflow: hidden !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  transition: all 180ms ease;
  position: relative;
  margin-bottom: 2px;
  min-width: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.menu-item:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.menu-item.active {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-weight: 700;
}

.menu-item .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  color: inherit;
}

.menu-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  margin-left: auto;
  box-shadow: 0 0 6px var(--brand-primary);
  flex-shrink: 0;
}

.badge-pill-counter {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--brand-border);
  color: var(--text-secondary);
  margin-left: auto;
}

.side-title {
  padding: 6px 10px 4px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.right-card {
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

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

/* ==========================================================================
   16. MOBILE VIEWPAGER2 BIODATA BOTTOM SHEET (< 768px)
   ========================================================================== */
.biodata-bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.biodata-bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.biodata-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 580px;
  margin: 0 auto;
  height: 88vh;
  max-height: 88vh;
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  z-index: 1051;
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.biodata-bottom-sheet.active {
  transform: translateY(0);
}

.biodata-sheet-drag-handle {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: #cbd5e1;
  margin: 10px auto 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.biodata-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.biodata-sheet-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 90px;
  -webkit-overflow-scrolling: touch;
}

.biodata-sheet-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}


/* ==========================================================================
   15. UNIVERSAL MATRIMONIAL VERTICAL SWIPE DECK (Desktop & Mobile)
   Non-Scrollable Viewport, Pure Vertical Swiping
   Inspired by Reference UI: Full-card immersion, verified badges, glass chips
   ========================================================================== */

/* Universal Profile Deck Container */
.universal-profile-deck {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Pull-to-Refresh Indicator for Universal Profile Deck */
.deck-pull-refresh-indicator {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translate(-50%, 0);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.ptr-spinner-circle {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  transition: transform 100ms ease;
}

.ptr-text {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.deck-pull-refresh-indicator.is-refreshing .ptr-spinner-circle {
  animation: ptrSpinAnim 700ms linear infinite;
}

@keyframes ptrSpinAnim {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Top Discovery Status / Filter Bar */
.deck-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
  z-index: 20;
}

.deck-counter-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.deck-dots-indicator {
  display: flex;
  gap: 3px;
  align-items: center;
}

.deck-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-light);
  transition: all 200ms ease;
}

.deck-dot.active {
  width: 16px;
  border-radius: 3px;
  background: var(--brand-primary);
}

/* The Vertical Swiping Stack */
.deck-stack-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  perspective: 1200px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* Individual Full-Bleed Profile Card */
.deck-swipe-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #0B0F19;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  transition: transform 340ms cubic-bezier(0.18, 0.89, 0.32, 1), opacity 340ms ease;
  will-change: transform, opacity;
}

.deck-swipe-card.card-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.deck-swipe-card.card-next {
  transform: translateY(100%) scale(0.94);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

.deck-swipe-card.card-prev {
  transform: translateY(-100%) scale(0.94);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

.deck-swipe-card.card-hidden {
  display: none !important;
}

/* Photo and Overlay Area */
.deck-card-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
  background: #060911;
  cursor: pointer;
}

.deck-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 400ms ease;
}

.deck-card-photo.blurred {
  filter: blur(8px) brightness(0.96);
  transform: scale(1.05);
}

/* Privacy Blur Shield (Soft frosted translucent overlay) */
.deck-privacy-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  text-align: center;
  padding: 24px;
  z-index: 3;
}

.deck-privacy-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 24px;
}

/* Vignette Gradient Layer (Dark at bottom for crystal readable text) */
.deck-card-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0) 28%,
      rgba(8, 12, 22, 0.72) 60%,
      rgba(8, 12, 22, 0.96) 86%,
      rgba(6, 9, 17, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Top Badges Inside Card */
.deck-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}

.deck-badge-glass {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.deck-badge-verified {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.deck-badge-vip {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card Details Overlay (Bottom) */
.deck-card-content {
  position: absolute;
  bottom: 84px;
  left: 18px;
  right: 18px;
  z-index: 4;
  color: #FFFFFF;
  pointer-events: none;
}

.deck-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.deck-card-name {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.3px;
}

.verified-tick-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.5);
  flex-shrink: 0;
}

.deck-card-subline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Frosted Glass Tags / Chips */
.deck-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.deck-chip-glass {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.deck-card-bio {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Floating Bottom Action Buttons Dock */
.deck-card-actions {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 15;
  padding: 0 16px;
}

.deck-action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 160ms ease;
  text-decoration: none !important;
}

.deck-action-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

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

.deck-action-btn.proposal-btn {
  width: 60px;
  height: 60px;
  background: var(--brand-gradient);
  color: #FFFFFF;
  box-shadow: 0 10px 28px var(--brand-primary-glow);
}

.deck-action-btn.proposal-btn:hover {
  box-shadow: 0 14px 34px var(--brand-primary-glow);
  transform: translateY(-3px) scale(1.08);
}

/* Desktop Floating Vertical Navigation Controls */
.deck-desktop-nav {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 25;
}

@media (min-width: 992px) {
  .deck-desktop-nav {
    display: flex;
  }
}

.deck-nav-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  box-shadow: var(--shadow-md);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.deck-nav-arrow-btn:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  transform: scale(1.08);
}

/* ==========================================================================
   AUTHENTICATION & 6-STEP REGISTRATION WIZARD (Mobile-Native Android Flow)
   ========================================================================== */
.auth-page-main {
  width: 100%;
  box-sizing: border-box;
}

.auth-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 32px 28px;
  box-sizing: border-box;
}

.register-wizard-card {
  max-width: 620px;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px 18px;
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }
}

.wizard-header {
  margin-bottom: 24px;
}

.wizard-step-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  background: var(--brand-page-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.wizard-step-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 10px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.wizard-progress-track {
  height: 6px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: var(--radius-full);
  transition: width 300ms ease;
}

.role-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 580px) {
  .role-pills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .role-pills-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.role-pill-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
}

.role-pill-option:hover {
  border-color: var(--brand-primary);
}

.role-pill-option.selected {
  border-color: var(--brand-primary);
  background: var(--brand-page-bg);
  box-shadow: 0 0 0 2px var(--brand-primary-light);
  color: var(--brand-primary);
}

.gender-pill-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
}

.gender-pill-option:hover {
  border-color: var(--brand-primary);
}

.gender-pill-option.selected {
  border-color: var(--brand-primary);
  background: var(--brand-page-bg);
  box-shadow: 0 0 0 2px var(--brand-primary-light);
  color: var(--brand-primary);
}

.photo-upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px 16px;
  text-align: center;
  background: var(--brand-page-bg);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.photo-upload-zone:hover {
  border-color: var(--brand-primary);
  background: #FFFFFF;
}

.wizard-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.wizard-nav-btn {
  padding: 9px 22px;
  font-weight: 700;
  border-radius: var(--radius-full);
  font-size: 13.5px;
}

/* ==========================================================================
   21. PROFILE DETAIL VIEW NATIVE STYLES
   ========================================================================== */
.profile-detail-harmony-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  top: auto !important;
  right: auto !important;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-hero-card {
  border-radius: var(--radius-2xl) !important;
  height: auto;
  min-height: min-content;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .profile-layout-grid aside .profile-hero-card {
    position: sticky;
    top: 0;
    max-height: none;
    overflow: visible;
  }
}

.profile-hero-photo-wrap {
  position: relative;
  aspect-ratio: 4/4.8;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 12px;
  background: #031729;
}

.profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 300ms ease;
}

.profile-hero-img:hover {
  transform: scale(1.02);
}

.profile-hero-top-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  z-index: 5;
}

.profile-photo-counter-badge {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-thumb-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.thumb-photo {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 180ms ease;
}

.thumb-photo.is-active,
.thumb-photo:hover {
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.profile-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.profile-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--brand-page-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
}

.mobile-detail-topbar {
  display: none !important;
}

@media (min-width: 992px) {
  .mobile-profile-sticky-actions,
  .mobile-detail-topbar {
    display: none !important;
  }
}

@media (max-width: 991px) {
  body.profile-page-locked .app-header,
  body:has(.profile-detail-view-layout) .app-header,
  .app-header.profile-page-header {
    display: none !important;
  }

  body.profile-page-locked .mobile-bottom-nav,
  body:has(.profile-detail-view-layout) .mobile-bottom-nav {
    display: none !important;
  }

  body:not(.profile-page-locked):not(:has(.profile-detail-view-layout)) .mobile-profile-sticky-actions {
    display: none !important;
  }

  .mobile-detail-topbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
    height: 56px !important;
    padding: 0 14px !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
  }

  .matrimony-layout.profile-detail-view-layout {
    padding-top: 0 !important;
  }
}

/* ==========================================================================
   WEB PROFILE DETAILS: FIXED HEADER & SIDEPANEL, SCROLLABLE PROFILE AREA
   ========================================================================== */
@media (min-width: 992px) {
  html:has(body.profile-page-locked),
  body.profile-page-locked,
  html:has(.profile-detail-view-layout),
  body:has(.profile-detail-view-layout) {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  .matrimony-layout.profile-detail-view-layout {
    height: calc(100vh - var(--header-height-desktop, 76px)) !important;
    max-height: calc(100vh - var(--header-height-desktop, 76px)) !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }
  .matrimony-layout.profile-detail-view-layout .main-content-feed {
    padding-bottom: 32px !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent !important;
  }
}

/* ==========================================================================
   PROTECTED SLIDE IMAGE VIEWER (MODAL CAROUSEL WITH DOWNLOAD PROTECTION)
   ========================================================================== */
.modal-backdrop.slide-gallery-modal {
  background-color: rgba(6, 9, 17, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
}

.gallery-topbar {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 30;
  flex-shrink: 0;
}

.gallery-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-candidate-name {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.gallery-counter-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-protected-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.gallery-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.gallery-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.gallery-stage {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.gallery-image-viewport {
  position: relative;
  max-width: 90vw;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  background: #030712;
}

.gallery-active-image {
  max-width: 90vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: opacity 180ms ease;
}

@keyframes slideFromRight {
  from {
    opacity: 0.4;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0.4;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.gallery-active-image.slide-from-right {
  animation: slideFromRight 220ms ease-out forwards;
}

.gallery-active-image.slide-from-left {
  animation: slideFromLeft 220ms ease-out forwards;
}

/* Transparent Security Shield over image to prevent right-click save and dragging */
.gallery-shield-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.gallery-shield-layer:active {
  cursor: grabbing;
}

.gallery-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  transition: all 180ms ease;
}

.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gallery-nav-btn.prev-btn {
  left: 24px;
}

.gallery-nav-btn.next-btn {
  right: 24px;
}

.gallery-bottom-strip {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 16px;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 30;
  flex-shrink: 0;
}

.gallery-thumb-item {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 180ms ease;
  flex-shrink: 0;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-thumb-item:hover {
  opacity: 0.85;
  transform: scale(1.06);
}

.gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--brand-primary);
  box-shadow: 0 0 12px var(--brand-primary-glow);
  transform: scale(1.12);
}

@media (max-width: 640px) {
  .gallery-nav-btn {
    width: 38px;
    height: 38px;
  }

  .gallery-nav-btn.prev-btn {
    left: 10px;
  }

  .gallery-nav-btn.next-btn {
    right: 10px;
  }

  .gallery-image-viewport {
    max-width: 96vw;
    max-height: 65vh;
  }

  .gallery-active-image {
    max-width: 96vw;
    max-height: 65vh;
  }

  .gallery-thumb-item {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   UNIVERSAL SITE-WIDE PRIVACY & ANTI-SCREENSHOT / ANTI-RECORDING PROTECTION
   ========================================================================== */
#privacyProtectionCurtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
}

#privacyProtectionCurtain.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.privacy-curtain-card {
  max-width: 420px;
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}

.privacy-curtain-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.privacy-curtain-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.privacy-curtain-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

.privacy-curtain-action {
  margin-top: 10px;
}

body.privacy-shield-active .matrimony-layout,
body.privacy-shield-active .app-header,
body.privacy-shield-active .mobile-bottom-nav,
body.privacy-shield-active .main-content-feed,
body.privacy-shield-active main {
  filter: blur(35px) !important;
  -webkit-filter: blur(35px) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: none !important;
}

@media print {
  html,
  body {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* ==========================================================================
   PHOTO PROTECTION & SELECTION
   ========================================================================== */
img, video, canvas {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.deck-swipe-card,
.profile-hero-card,
.gallery-image-viewport,
.profile-card-image,
.mobile-detail-topbar,
.slide-gallery-modal,
.thumb-photo,
.deck-card-photo-wrap,
.profile-hero-photo-wrap {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

/* Photo Protection Shield: transparent layer over images to prevent mobile long-press context menu */
.deck-card-photo-wrap,
.profile-hero-photo-wrap,
.gallery-image-viewport {
  position: relative;
}

.deck-card-photo-wrap::after,
.profile-hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: auto !important;
}

/* ==========================================================================
   MOBILE FLOATING ANIMATED FULLSCREEN BUTTON (Center-Left)
   ========================================================================== */
.mobile-fullscreen-float-wrap {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 280ms ease, transform 280ms ease, visibility 280ms;
}

/* Explicitly hide in fullscreen mode across all browsers & native flags */
:fullscreen #mobileFullscreenFloat,
:-webkit-full-screen #mobileFullscreenFloat,
:-moz-full-screen #mobileFullscreenFloat,
:-ms-fullscreen #mobileFullscreenFloat,
html.is-fullscreen #mobileFullscreenFloat,
body.is-fullscreen #mobileFullscreenFloat {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-50%) scale(0.5) !important;
}

@media (min-width: 769px) {
  .mobile-fullscreen-float-wrap {
    display: none !important;
  }
}

.mobile-fullscreen-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4338CA 0%, #6366F1 50%, #4F46E5 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(67, 56, 202, 0.5), 0 3px 10px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
  animation: floatPulseCenterLeft 3.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-fullscreen-btn:active {
  transform: scale(0.90) !important;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.6), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fs-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.fs-icon-svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: transform 220ms ease;
  animation: fsIconBreathe 2.8s ease-in-out infinite;
}

@keyframes fsIconBreathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

.fs-live-indicator {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: fsDotPulse 1.8s ease-in-out infinite;
}

@keyframes fsDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.6);
  }
}

/* Glass Shimmer light sweep */
.fs-shimmer-sweep {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.38) 50%,
      transparent 100%);
  transform: rotate(25deg);
  animation: fsShimmer 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes fsShimmer {

  0%,
  20% {
    left: -100%;
  }

  60%,
  100% {
    left: 200%;
  }
}

/* Dual Animated Concentric Pulse Rings */
.fs-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.65);
  pointer-events: none;
  animation: fsRingWave 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.fs-pulse-ring.ring-2 {
  animation-delay: 1.4s;
}

@keyframes fsRingWave {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
  }

  60% {
    transform: scale(1.45);
    opacity: 0;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes floatPulseCenterLeft {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ===================================================================
   SMART APP INSTALL FLOATING CARD (Redesigned with Favicon Logo & Premium Action Row)
   =================================================================== */
.app-install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 440px;
  box-sizing: border-box;
  animation: slideUpInstallBanner 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 767px) {
  .app-install-banner {
    bottom: calc(var(--bottom-nav-height, 62px) + 12px);
    width: calc(100% - 24px);
    max-width: 400px;
  }
}

.install-banner-inner {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 14px 10px 12px;
  border-radius: 20px;
  box-shadow: 0 16px 38px -6px rgba(15, 23, 42, 0.22), 0 4px 14px -2px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.95);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install-banner-close {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  padding: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.install-banner-close:hover {
  transform: scale(1.12);
  background: #ef4444;
}

.install-banner-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.install-banner-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.install-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.install-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.btn-register-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 700;
  padding: 5.5px 13px;
  font-size: 11.5px;
  white-space: nowrap;
  text-decoration: none !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.3;
}

.btn-register-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.45);
}

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

.install-banner-btn {
  background: linear-gradient(135deg, var(--brand-primary, #4338ca) 0%, var(--brand-primary-dark, #312e81) 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5.5px 14px;
  border-radius: 9999px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.3;
}

.install-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.45);
}

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

@keyframes slideUpInstallBanner {
  from {
    opacity: 0;
    transform: translate(-50%, 25px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION: ROUND APP ICON REEL MEDIA BUTTON
   ========================================================================== */
.bottom-nav-reel-item {
  position: relative;
}

.bottom-reel-round-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #f97316 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
}

.bottom-reel-round-btn:active {
  transform: scale(0.92);
}

.bottom-reel-app-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  display: block;
  pointer-events: none;
}

.bottom-reel-live-ring {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #ffffff;
}

.bottom-reel-round-btn.is-active-reel {
  box-shadow: 0 0 0 2.5px rgba(236, 72, 153, 0.5), 0 3px 10px rgba(244, 63, 94, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   NATIVE VERTICAL SWIPE REEL MEDIA SCREEN (INSTAGRAM / TIKTOK REELS PARITY)
   ========================================================================== */
.reels-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: calc(100vh - var(--header-height) - 16px);
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .reels-page-wrapper {
    height: calc(100dvh - var(--header-height) - var(--bottom-nav-height));
    min-height: 0;
    padding: 0;
  }
}

.reels-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  width: 100%;
}

.reels-theater-frame {
  width: 410px;
  max-width: 100%;
  height: 100%;
  max-height: 840px;
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

@media (max-width: 991px) {
  .reels-theater-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
}

.reels-vertical-slider {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.reels-vertical-slider::-webkit-scrollbar {
  display: none;
}

.reel-slide {
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  background: #000000;
  user-select: none;
  -webkit-user-select: none;
}

.reel-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: #000000;
}

/* Transparent protection surface: intercepts touch/clicks, strictly blocks downloads & context menu */
.reel-touch-surface {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

/* Central Play/Pause Animation Feedback Icon */
.reel-center-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 25;
}

.reel-center-play-indicator.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Popping Double-Tap Heart Animation */
.reel-heart-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 30;
  font-size: 80px;
  filter: drop-shadow(0 6px 18px rgba(244, 63, 94, 0.6));
  animation: heartPopAnim 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPopAnim {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.9;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -80%) scale(1.1);
    opacity: 0;
  }
}

/* Bottom & Side Vignette Gradients */
.reel-vignette-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  pointer-events: none;
  z-index: 12;
}

.reel-vignette-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 12;
}

/* Right Floating Action Stack */
.reel-action-stack {
  position: absolute;
  right: 14px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 20;
}

.reel-action-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  padding: 0;
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.reel-action-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.reel-action-btn.is-liked .reel-action-icon-wrap {
  background: linear-gradient(135deg, #ef4444 0%, #e11d48 100%) !important;
  border-color: #fda4af !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.5) !important;
  animation: heartPulse 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.reel-action-label {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.2px;
}

/* Creator Avatar in Action Stack */
.reel-creator-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 4px;
}

.reel-creator-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.reel-creator-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #f43f5e;
  color: #ffffff;
  font-size: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  font-weight: 800;
}

/* Bottom Overlay Info */
.reel-info-overlay {
  position: absolute;
  bottom: 22px;
  left: 16px;
  right: 76px;
  z-index: 20;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reel-creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reel-creator-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.2px;
}

.reel-verified-chip {
  background: rgba(16, 185, 129, 0.85);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.reel-title-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-audio-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.reel-audio-ticker {
  overflow: hidden;
  white-space: nowrap;
  max-width: 220px;
  text-overflow: ellipsis;
}

/* Floating Desktop Nav Buttons (Up / Down) */
.reels-desktop-controls {
  position: absolute;
  right: -60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}

@media (max-width: 991px) {
  .reels-desktop-controls {
    display: none !important;
  }
}

.reels-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--brand-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.18s ease;
}

.reels-nav-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: scale(1.08);
}

.reels-nav-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   ENHANCED RESPONSIVE PROFILE EDITING SUITE & TAB NAVIGATION
   ========================================================================== */

/* Sticky Tabs Navigation Wrapper */
.edit-profile-tabs-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--brand-page-bg, #f8fafc);
  padding: 4px 0 10px 0;
  margin-bottom: 8px;
  width: 100%;
}

.profile-tabs-scroller {
  background: #FFFFFF !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  border-radius: var(--radius-xl, 16px) !important;
  padding: 6px 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.profile-tabs-scroller .tabs-scroll-content {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 2px 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.profile-tabs-scroller .tabs-scroll-content::-webkit-scrollbar {
  display: none;
}

/* Individual Tab Pill Button */
.profile-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--border-light, #e2e8f0);
  background: #f8fafc;
  color: var(--text-secondary, #475569);
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: center;
  user-select: none;
}

.profile-tab-pill:hover {
  background: #f1f5f9;
  color: var(--brand-primary, #4338ca);
  border-color: #cbd5e1;
}

.profile-tab-pill.active {
  background: linear-gradient(135deg, var(--brand-primary, #4338ca), #3730a3) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.32) !important;
  font-weight: 700;
}

.profile-tab-pill .tab-pill-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  transition: all 0.2s;
  flex-shrink: 0;
}

.profile-tab-pill.active .tab-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.profile-tab-pill .tab-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Card & Section Header Banner */
.card.edit-profile-card,
.edit-profile-card {
  padding: 28px 32px;
  max-width: 820px;
  margin: 0 auto 32px;
  background: #FFFFFF;
  border-radius: var(--radius-xl, 18px);
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0 !important;
  overflow: visible !important;
  height: auto !important;
  min-height: min-content !important;
}

.edit-profile-tab-pane {
  width: 100%;
  height: auto !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}

.section-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.section-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-primary-light, #eef2ff);
  color: var(--brand-primary, #4338ca);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-banner-text {
  flex: 1;
  min-width: 0;
}

.section-banner-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.section-step-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-primary-light, #eef2ff);
  color: var(--brand-primary, #4338ca);
}

.section-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin: 0 0 4px 0;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  margin: 0;
  line-height: 1.45;
}

/* Form Groups & Controls */
.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.edit-form-group {
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.edit-form-group .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.edit-form-group .form-control {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #0f172a;
  background: #FFFFFF;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.edit-form-group .form-control:focus {
  border-color: var(--brand-primary, #4338ca);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
  outline: none;
}

.form-control-locked-wrap {
  position: relative;
  width: 100%;
}

.form-control-locked {
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 700 !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
  padding-right: 36px !important;
}

.locked-icon-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
}

/* Range Selector Grid (Age & Height) */
.range-selector-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.range-separator-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  padding: 0 4px;
}

/* Wizard Navigation Bar */
.form-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light, #f1f5f9);
  width: 100%;
  box-sizing: border-box;
}

.btn-wizard-prev,
.btn-wizard-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md, 8px);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-light, #e2e8f0);
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none !important;
}

.btn-wizard-prev:hover,
.btn-wizard-next:hover {
  background: #f1f5f9;
  color: var(--brand-primary, #4338ca);
  border-color: #cbd5e1;
}

.btn-wizard-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-primary, #4338ca), #3730a3);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.28);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-wizard-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(67, 56, 202, 0.38);
}

/* Photo Slots Styling */
.photo-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.photo-slot-card {
  border-radius: var(--radius-lg, 12px);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.photo-slot-card.is-filled {
  border: 2px solid var(--brand-primary, #4338ca);
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.photo-slot-card.is-empty {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
}

.photo-slot-card.is-empty:hover {
  border-color: var(--brand-primary, #4338ca);
  background: var(--brand-primary-light, #eef2ff);
}

.slot-primary-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.slot-number-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.slot-actions-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.6) 75%, transparent 100%);
  padding: 8px 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.slot-btn {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.15s, transform 0.15s;
}

.slot-btn:active {
  transform: scale(0.95);
}

.slot-btn-primary {
  background: var(--brand-primary, #4338ca);
  color: #FFFFFF;
}

.slot-btn-delete {
  background: #ef4444;
  color: #FFFFFF;
}

/* Mobile Responsive Optimization (< 768px) */
@media (max-width: 767px) {
  .card.edit-profile-card,
  .edit-profile-card {
    padding: 16px 14px 22px !important;
    border-radius: var(--radius-lg, 14px) !important;
    margin: 0 auto 20px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    height: auto !important;
    min-height: min-content !important;
  }

  /* Only apply 90px bottom clearance to scrollable profile-edit layout, NEVER to locked swipe/criteria feeds */
  .profile-edit-layout .main-content-feed,
  body.has-profile-edit .main-content-feed {
    padding-bottom: 90px !important;
  }

  .form-grid-2col,
  .form-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .photo-slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .form-wizard-actions {
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }

  .btn-wizard-save {
    width: 100% !important;
    max-width: 100% !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
  }

  .form-wizard-nav-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .btn-wizard-prev,
  .btn-wizard-next {
    flex: 1;
    justify-content: center;
    padding: 10px 12px !important;
    font-size: 12.5px !important;
  }

  .profile-tabs-scroller,
  .tabs-scroller-wrap {
    padding: 4px 6px !important;
    border-radius: var(--radius-lg, 12px) !important;
  }

  .profile-tab-pill,
  .tab-pill {
    padding: 6px 12px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }
}

@media (max-width: 420px) {
  .photo-slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .range-selector-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .range-separator-tag {
    display: none;
  }
}

/* ==========================================================================
   16. GLOBAL FLUID CONTENT-BASED SIZING & DEFENSIVE LAYOUT ENGINE
   - Auto height & auto width adaptation across every parent card, container & section
   - Eliminates clipping, rigid overflow, element collisions and horizontal blowout
   - Preserves design, brand theme, typography and touch affordances
   ========================================================================== */

/* Universal content-based container sizing */
.card,
.container,
.section,
.widget,
.panel,
.box,
.modal-dialog,
.modal-card,
.criteria-screen-card,
.edit-profile-card,
.reels-theater-frame,
.side-menu-card,
.right-card {
  box-sizing: border-box;
}

/* Ensure all flex rows wrap defensively when children exceed available track */
.flex-defensive-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

/* Ensure cards and list items automatically adjust height to internal content */
.auto-height-card,
.card-fluid-content {
  height: auto !important;
  min-height: min-content !important;
  max-height: none !important;
  box-sizing: border-box !important;
}

/* Fluid responsive grid helpers (minmax(0, 1fr)) */
.grid-fluid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.grid-fluid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .grid-fluid-2col,
  .grid-fluid-3col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Universal media scaling to prevent card blowout */
img,
video,
canvas,
svg {
  max-width: 100%;
}

/* Utility classes for sizing */
.h-auto { height: auto !important; }
.min-h-0 { min-height: 0 !important; }
.min-w-0 { min-width: 0 !important; }
.w-full { width: 100% !important; max-width: 100% !important; }
.flex-wrap { flex-wrap: wrap !important; }
.overflow-visible { overflow: visible !important; }
.overflow-auto-y { overflow-y: auto !important; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   17. SEAMLESS SPA TRANSITION & TOP PROGRESS BAR ENGINE
   ========================================================================== */
#seamlessProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--brand-primary, #4338ca), #6366f1, var(--brand-secondary, #ec4899), #10b981);
  box-shadow: 0 0 12px rgba(67, 56, 202, 0.75), 0 0 5px rgba(236, 72, 153, 0.6);
  z-index: 99999999;
  opacity: 0;
  pointer-events: none;
  transition: width 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
  transform: translateZ(0);
}

#seamlessProgressBar.is-active {
  opacity: 1;
}

#seamlessProgressBar.is-done {
  width: 100% !important;
  opacity: 0;
  transition: width 150ms ease-out, opacity 250ms 150ms ease-in;
}

.main-content-feed,
.chat-main-viewport,
.matrimony-layout {
  transition: opacity 120ms ease;
}

.seamless-transitioning {
  opacity: 0.94 !important;
  pointer-events: auto;
}

/* ==========================================================================
   EXTRA SMALL BUTTON (.btn-xs)
   ========================================================================== */
.btn-xs {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-sm, 6px);
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   UNIVERSAL PULL-TO-REFRESH PILL COMPONENT (Matching index.php deck UX)
   ========================================================================== */
.ptr-indicator,
.universal-pull-refresh-indicator {
  position: fixed;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-full, 9999px);
  padding: 7px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 9999999;
  transition: transform 0.12s ease-out, top 0.18s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.2s ease, background 0.18s ease, border-color 0.18s ease;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}

.ptr-indicator.ptr-visible,
.universal-pull-refresh-indicator.ptr-visible {
  opacity: 1;
}

.ptr-indicator .ptr-spinner-circle,
.universal-pull-refresh-indicator .ptr-spinner-circle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary, #4338ca);
  transition: transform 100ms ease;
  flex-shrink: 0;
}

.ptr-indicator .ptr-text,
.universal-pull-refresh-indicator .ptr-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.ptr-indicator.ptr-ready,
.universal-pull-refresh-indicator.ptr-ready {
  background: #f0fdf4;
  border-color: #86efac;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.24);
}

.ptr-indicator.ptr-ready .ptr-spinner-circle,
.universal-pull-refresh-indicator.ptr-ready .ptr-spinner-circle {
  color: #059669;
}

.ptr-indicator.ptr-ready .ptr-text,
.universal-pull-refresh-indicator.ptr-ready .ptr-text {
  color: #166534;
}

.ptr-indicator.is-refreshing .ptr-spinner-circle,
.universal-pull-refresh-indicator.is-refreshing .ptr-spinner-circle,
.ptr-indicator.ptr-refreshing .ptr-spinner-circle,
.universal-pull-refresh-indicator.ptr-refreshing .ptr-spinner-circle {
  animation: ptrSpinAnim 700ms linear infinite;
  color: var(--brand-primary, #4338ca);
}

/* ==========================================================================
   PLANS & MEMBERSHIP MODULE STYLES (Universal Across Full & SPA Navigation)
   ========================================================================== */
.plan-tabs-bar {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
  margin: 0 auto 28px;
  max-width: 560px;
  border: 1px solid var(--border-light);
  box-sizing: border-box;
}

.plan-tab-btn {
  flex: 1;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
}

.plan-tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.plan-tab-btn:hover:not(.active) {
  color: var(--brand-primary);
}

.plan-discount-badge {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  display: inline-block;
}

.user-status-card {
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.user-status-card.is-active {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #86efac;
}

.user-status-card.is-expired {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  border-color: #fca5a5;
}

.special-discount-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-xl);
  padding: 16px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
}

.plan-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 9px;
}

.plan-feature-row.is-excluded {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.65;
}

.faq-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-box-header {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #f8fafc;
  user-select: none;
}

.faq-box-content {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  display: none;
}

.faq-box.open .faq-box-content {
  display: block;
}

.faq-box.open .faq-box-header {
  background: #ffffff;
  color: var(--brand-primary);
}

/* ==========================================================================
   SUPPORT & HELPDESK MODULE STYLES (Universal Across Full & SPA Navigation)
   ========================================================================== */
.support-mobile-app-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-light, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 40;
  margin: -16px -16px 16px -16px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .support-mobile-app-bar {
    display: flex;
  }
}

.support-segment-nav {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
  gap: 4px;
  box-sizing: border-box;
}

.support-segment-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.support-segment-btn.active {
  background: #ffffff;
  color: var(--brand-primary, #6366f1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.support-contact-card {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid var(--border-light, #e2e8f0);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.support-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.ticket-bubble-user {
  background: #f8fafc;
  border-left: 3.5px solid var(--brand-primary, #6366f1);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ticket-bubble-admin {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   INBOX & BIODATA CONTACT ROWS (Responsive Across Mobile & Desktop)
   ========================================================================== */
.biodata-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.biodata-contact-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .biodata-contact-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }
  .biodata-contact-actions {
    width: 100% !important;
    display: flex !important;
    gap: 6px !important;
  }
  .biodata-contact-actions .btn {
    flex: 1 1 0 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
}

/* ==========================================================================
   PROFILE DETAIL VIEW: GRID & MOBILE STICKY DOCK
   ========================================================================== */
@media (min-width: 992px) {
  .profile-layout-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) !important;
    gap: 24px;
    align-items: flex-start;
  }
  .profile-hero-card {
    position: sticky !important;
    top: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 991px) {
  .profile-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .profile-detail-view-layout {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-bottom: 0 !important;
  }
  .profile-detail-view-layout .main-content-feed {
    padding-bottom: 60px !important;
  }
}

.mobile-profile-sticky-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  border-radius: 0;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom, 8px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.mobile-dock-btn {
  border-radius: var(--radius-full);
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  box-sizing: border-box;
}

.mobile-dock-connect-btn {
  border-radius: var(--radius-full);
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 700;
  flex: 1.25;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ==========================================================================
   VERIFY SUITE: SCANNER & OCR ANIMATIONS
   ========================================================================== */
.face-scanner-viewport {
  position: relative;
  width: 220px;
  height: 260px;
  margin: 0 auto 16px;
  border-radius: 120px / 140px;
  border: 3.5px dashed #94a3b8;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.face-scanner-viewport.face-detected {
  border: 4px solid #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6), inset 0 0 15px rgba(16, 185, 129, 0.3);
}

.face-scanner-viewport.scanning {
  border-color: #38bdf8;
}

.scan-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, #10b981, transparent);
  box-shadow: 0 0 10px #10b981;
  animation: scanLaser 2.2s infinite ease-in-out;
  display: none;
  z-index: 5;
}

@keyframes scanLaser {
  0% { top: 5%; opacity: 0.3; }
  50% { top: 85%; opacity: 1; }
  100% { top: 5%; opacity: 0.3; }
}

/* ==========================================================================
   ADVANCED SEARCH & PARTNER CRITERIA FILTER ENGINE (SEARCH.PHP)
   ========================================================================== */
/* Premium Results & Criteria Summary Bar */
.search-criteria-summary-bar {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-xl, 20px);
  padding: 10px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}
.scsb-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.scsb-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.scsb-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-primary-light, #e0e7ff);
  color: var(--brand-primary, #4338ca);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scsb-heading {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.scsb-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  display: block;
}
.scsb-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-edit-criteria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-full, 9999px);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.3);
  transition: all 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  position: relative;
  z-index: 10;
}
.btn-edit-criteria:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(67, 56, 202, 0.4);
  filter: brightness(1.08);
}
.btn-edit-criteria:active {
  transform: translateY(0);
}
.edit-criteria-count-badge {
  background: #ffffff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 9999px;
  min-width: 16px;
  line-height: 1.3;
  display: inline-block;
}
.btn-reset-criteria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  background: #fee2e2;
  color: #dc2626 !important;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid #fecaca;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-reset-criteria:hover {
  background: #fecaca;
  color: #b91c1c !important;
}
.scsb-chips-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
  scrollbar-width: thin;
}

.criteria-screen-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-2xl, 24px);
  border: 1px solid var(--border-light, #e2e8f0);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.criteria-screen-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.criteria-screen-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 80px 20px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.criteria-screen-footer {
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 5;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.04);
}

.criteria-two-col {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Searchable Multi-Select Component */
.sms-wrap {
  position: relative;
  width: 100%;
}
.sms-wrap.open {
  z-index: 1001 !important;
}
.sms-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-height: 40px;
  padding: 4px 34px 4px 8px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: all 180ms ease;
  box-sizing: border-box;
  position: relative;
}
.sms-tags-container:hover {
  border-color: #94a3b8;
}
.sms-tags-container:focus-within {
  border-color: var(--brand-primary, #4338ca);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}
.sms-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #64748b;
  pointer-events: none;
  transition: transform 180ms ease;
}
.sms-wrap.open .sms-chevron {
  transform: translateY(-50%) rotate(180deg);
}
.sms-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--brand-primary-light, #e0e7ff);
  color: var(--brand-primary, #4338ca);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  line-height: 1.4;
  user-select: none;
}
.sms-remove {
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  color: var(--brand-primary, #4338ca);
  font-weight: bold;
}
.sms-remove:hover {
  color: #dc2626;
}
.sms-search-input {
  border: none !important;
  outline: none !important;
  padding: 2px 4px !important;
  font-size: 12.5px !important;
  background: transparent !important;
  flex: 1 1 80px;
  min-width: 60px;
  color: #1e293b;
  cursor: text;
}
.sms-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
  z-index: 1050;
  display: none;
}
.sms-option {
  padding: 8px 12px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 120ms ease;
  user-select: none;
}
.sms-option:hover {
  background: #f1f5f9;
  color: var(--brand-primary, #4338ca);
  font-weight: 600;
}
.sms-option.selected {
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
}
.sms-option.selected::after {
  content: '✓';
  font-weight: 800;
  font-size: 13px;
  color: var(--brand-primary, #4338ca);
}

/* Marital Status Chips */
.marital-chip {
  padding: 6px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  transition: all 150ms ease;
  user-select: none;
}
.marital-chip.active {
  background: var(--brand-primary, #4338ca);
  color: #ffffff;
  border-color: var(--brand-primary, #4338ca);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.25);
}

/* Tab Segmented Pills */
.search-modal-nav-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin: 10px 18px 0;
  gap: 4px;
}
.search-tab-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  border-radius: 11px;
  cursor: pointer;
  transition: all 180ms ease;
}
.search-tab-pill.active {
  background: #ffffff;
  color: var(--brand-primary, #4338ca);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.search-tab-pill:hover:not(.active) {
  color: #0f172a;
}

/* Quick Search Suggestion Chips */
.quick-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.quick-chip {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
}
.quick-chip:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #4338ca;
  transform: translateY(-1px);
}

/* Mobile Responsiveness for Criteria Form */
@media (max-width: 1023px) {
  .criteria-two-col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .matrimony-layout.page-deck-locked {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: calc(100vh - 56px - var(--bottom-nav-height, 62px)) !important;
    height: calc(100dvh - 56px - var(--bottom-nav-height, 62px)) !important;
    max-height: calc(100dvh - 56px - var(--bottom-nav-height, 62px)) !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .matrimony-layout.page-deck-locked .main-content-feed {
    flex: 1 1 0% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }
  .matrimony-layout.page-deck-locked .criteria-screen-card {
    flex: 1 1 0% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    border-radius: var(--radius-xl, 16px) var(--radius-xl, 16px) 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #searchCriteriaFormDirect {
    flex: 1 1 0% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
  }
  #directPanelCriteria {
    flex: 1 1 0% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .criteria-screen-body {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 14px 14px 20px 14px !important;
  }
  .criteria-screen-footer {
    flex-shrink: 0 !important;
    position: relative !important;
    bottom: 0 !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border-top: 1px solid var(--border-light, #e2e8f0) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    z-index: 50 !important;
    margin: 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04) !important;
  }
  .criteria-screen-footer .btn-ghost {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 10px !important;
  }
  .criteria-screen-footer .btn-primary {
    flex: 1 1 auto !important;
    width: auto !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
  #directPanelText {
    padding: 14px 12px 20px 12px !important;
  }
}

/* ==========================================================================
   ULTRA-PREMIUM MATRIMONIAL SHIMMER SKELETON SYSTEM
   True 1:1 Parity with Native Mobile Swipe Cards, Tabs & Profile Biodata
   ========================================================================== */

/* Unified Angled Light Sheen Animation */
@keyframes modernDeckSweep {
  0% {
    transform: translate3d(-60%, -60%, 0);
  }
  100% {
    transform: translate3d(60%, 60%, 0);
  }
}

@keyframes modernLightSweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes shimmerPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.85;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes tabPillPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  70% {
    transform: scale(0.97);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.tab-pill.tab-pill-loading {
  position: relative;
  overflow: hidden;
  animation: tabPillPulse 1.2s infinite ease-in-out;
  border-color: var(--brand-primary, #4338ca) !important;
  color: var(--brand-primary, #4338ca) !important;
  background: var(--brand-primary-light, #e0e7ff) !important;
}

/* 1. DECK SHIMMER CARD (1:1 Exact Mirror of deck-swipe-card) */
.deck-shimmer-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #0B0F19;
  z-index: 40;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 360ms cubic-bezier(0.16, 1, 0.3, 1), transform 360ms cubic-bezier(0.16, 1, 0.3, 1), visibility 360ms ease;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.deck-shimmer-card.deck-shimmer-fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(1.015) !important;
}

.deck-shimmer-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #1a2333 0%, #080d16 80%);
}

/* Photorealistic 115-deg Luminous Light Sweep Across Entire Card */
.deck-shimmer-card::after {
  content: '';
  position: absolute;
  top: -65%;
  left: -65%;
  width: 230%;
  height: 230%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.05) 44%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.05) 56%,
    rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translate3d(-100%, -100%, 0);
  animation: modernDeckSweep 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 30;
}

/* Center Avatar Silhouette with Concentric Glowing Rings */
.deck-shimmer-silhouette {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.shimmer-avatar-icon {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(255, 255, 255, 0.04) 75%);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.2);
}

.shimmer-pulse-ring-1 {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  animation: shimmerPulseRing 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.shimmer-pulse-ring-2 {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  animation: shimmerPulseRing 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.8s;
}

/* Individual Glass Shimmer Elements inside Deck */
.shimmer-glass-item {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* 2. PROFILE PAGE & LIGHT-THEME SHIMMER SYSTEM */
.profile-transition-shimmer-backdrop {
  position: fixed;
  top: var(--header-height-desktop, 60px);
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--bg-body, #f8fafc);
  display: flex;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.profile-transition-shimmer-backdrop.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 1023px) {
  .profile-transition-shimmer-backdrop {
    top: var(--header-height-mobile, 52px);
    bottom: var(--bottom-nav-height, 62px);
  }
}

.profile-transition-shimmer-layout {
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: var(--layout-padding-y) var(--layout-padding-x) !important;
  height: 100% !important;
  display: flex !important;
  box-sizing: border-box !important;
  position: relative !important;
}

@media (max-width: 1023px) {
  .profile-transition-shimmer-layout {
    padding: 4px 6px 0 !important;
    flex-direction: column !important;
  }
}

.matrimony-layout.profile-detail-view-layout {
  position: relative !important;
  z-index: 40 !important;
  background: var(--bg-body, #f8fafc) !important;
}

.profile-shimmer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--bg-body, #f8fafc);
  z-index: 60;
  display: block;
  opacity: 1;
  visibility: visible;
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1), visibility 350ms ease;
  pointer-events: none;
  overflow: hidden !important;
  box-sizing: border-box;
}

.profile-shimmer-overlay.profile-shimmer-fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
}

.shimmer-light-box {
  background: #e2e8f0;
  background-image: linear-gradient(
    110deg,
    #e2e8f0 0%,
    #e2e8f0 32%,
    #ffffff 50%,
    #e2e8f0 68%,
    #e2e8f0 100%
  );
  background-size: 200% 100%;
  animation: modernLightSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: 8px;
}

.profile-shimmer-hero-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 36%, #1c2538 0%, #0b0f19 80%);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.profile-shimmer-hero-img::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.06) 44%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.06) 56%,
    rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translate3d(-100%, -100%, 0);
  animation: modernDeckSweep 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .profile-shimmer-hero-img {
    aspect-ratio: 4 / 3;
    max-height: 380px;
  }
}




