/* ==========================================================================
   Sourashtra Matrimony - Mobile-First Responsive Architecture
   Universal viewport adaptation, mobile ratios, touch targets, and safe areas.
   Preserves 100% of brand colors, gradients, and font families.
   ========================================================================== */

/* ── Mobile Safe Area & Layout Variables ─────────────────────────────────── */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-h-mobile: 58px;
  --nav-h-mobile: 58px;
  --touch-target-min: 44px;
}

/* ── Universal Mobile Touch & Box Sizing ─────────────────────────────────── */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   TABLET RESPONSIVENESS (768px - 1000px)
   ========================================================================== */
@media (max-width: 1000px) {
  /* Tablet Navigation & Layout Shell */
  .app-sidebar {
    display: none !important;
  }

  .app-header {
    left: 0 !important;
    height: calc(var(--header-h-mobile) + var(--safe-top)) !important;
    padding-top: var(--safe-top);
  }

  .app-main-content {
    margin-left: 0 !important;
    padding: 1.5rem !important;
    padding-bottom: calc(var(--nav-h-mobile) + var(--safe-bottom) + 2rem) !important;
  }

  .app-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(var(--nav-h-mobile) + var(--safe-bottom)) !important;
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    z-index: 120;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.05);
  }

  .app-bottom-nav .nav-item {
    flex: 1;
    min-width: 0;
    height: var(--nav-h-mobile);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    font-weight: 600;
    padding: 4px 1px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
  }

  .welcome-container {
    grid-template-columns: 1fr;
  }
  
  .welcome-hero-panel {
    padding: 3rem 2rem;
    height: 35vh;
  }
  
  .welcome-logo {
    font-size: 2.3rem;
  }
  
  .welcome-action-panel {
    padding: 2.5rem 2rem;
  }

  .discover-container {
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
  }

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

/* ==========================================================================
   MOBILE FIRST PHONE ARCHITECTURE (< 768px)
   Covers standard smartphones (360px - 430px) and mini-tablets
   ========================================================================== */
@media (max-width: 767px) {

  /* ── 1. Global Sizing & Fluid Typography ──────────────────────────────── */
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-size: 14.5px;
    overflow-x: hidden;
  }

  body.lang-ta {
    font-size: 12.5px !important;
  }

  /* Optical Tamil Headings and Component Scaling on Mobile */
  body.lang-ta h1 { font-size: clamp(1.15rem, 4.0vw, 1.35rem) !important; line-height: 1.3 !important; }
  body.lang-ta h2 { font-size: clamp(1.00rem, 3.4vw, 1.18rem) !important; line-height: 1.3 !important; }
  body.lang-ta h3 { font-size: clamp(0.88rem, 3.0vw, 1.00rem) !important; line-height: 1.3 !important; }
  body.lang-ta h4 { font-size: 0.80rem !important; line-height: 1.3 !important; }
  body.lang-ta p { font-size: 0.73rem !important; line-height: 1.38 !important; }
  body.lang-ta .welcome-heading { font-size: clamp(1.05rem, 3.6vw, 1.25rem) !important; }
  body.lang-ta .welcome-logo { font-size: clamp(1.25rem, 4.4vw, 1.60rem) !important; }
  body.lang-ta .welcome-tagline { font-size: 0.75rem !important; }
  body.lang-ta .header-title { font-size: clamp(0.74rem, 2.8vw, 0.86rem) !important; line-height: 1.45 !important; letter-spacing: -0.015em; padding: 4px 0 2px 0 !important; }
  body.lang-ta .step-title { font-size: 0.92rem !important; }
  body.lang-ta .detail-title-row h2 { font-size: clamp(1.05rem, 3.8vw, 1.22rem) !important; }
  body.lang-ta .app-bottom-nav .nav-item span { font-size: 0.68rem !important; font-weight: 600 !important; line-height: 1.25 !important; letter-spacing: -0.01em; }

  /* Eliminate duplicate top padding gap between fixed app-header and main content */
  #view-app {
    padding-top: 0 !important;
    min-height: 100dvh;
  }

  .app-main-content {
    margin-left: 0 !important;
    padding-top: calc(var(--header-h-mobile) + var(--safe-top) + 8px) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: calc(var(--nav-h-mobile) + var(--safe-bottom) + 20px) !important;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: 100dvh;
  }

  /* ── 2. Top App Header (Material 3 Adaptive TopAppBar) ─────────────────── */
  .app-header {
    left: 0 !important;
    height: calc(var(--header-h-mobile) + var(--safe-top)) !important;
    padding-top: var(--safe-top);
    background: rgba(250, 250, 249, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.65);
    z-index: 100;
    transition: box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.22s ease, border-color 0.22s ease;
  }

  .app-header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 14px rgba(28, 25, 23, 0.08);
    border-bottom: 1px solid rgba(231, 229, 228, 0.95);
  }

  .header-container {
    padding: 0 10px !important;
    gap: 7px;
    height: var(--header-h-mobile);
    max-width: 100%;
  }

  .logo-area {
    gap: 5px;
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: visible;
  }

  .logo-symbol {
    font-size: 1.12rem;
    flex-shrink: 0;
    line-height: 1;
  }

  .header-title {
    font-size: clamp(0.85rem, 3.4vw, 1.02rem) !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    line-height: 1.35 !important;
    padding: 3px 0 2px 0 !important;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .profile-completeness-badge,
  #btn-logout,
  #btn-header-private-prefs {
    display: none !important; /* Mobile: Logout & Prefs kept in Profile & Home views */
  }

  .btn-icon-header {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
    font-size: 0.85rem;
    background: rgba(28, 25, 23, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: var(--transition);
  }

  .btn-icon-header:active {
    transform: scale(0.92);
    background: rgba(224, 90, 71, 0.12);
  }

  .btn-icon-header svg {
    width: 18px;
    height: 18px;
    color: var(--text-sub);
  }

  .header-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.60rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    line-height: 1;
  }

  /* Compact Language Segmented Pill for Mobile (EN | த) */
  .lang-toggle-group {
    padding: 2px;
    margin-right: 0 !important;
    background: rgba(28, 25, 23, 0.06);
    border-radius: 20px;
    border: 1px solid rgba(231, 229, 228, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .btn-lang-toggle {
    font-size: 0.70rem !important;
    font-weight: 700;
    padding: 2.5px 7px !important;
    border-radius: 12px !important;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
  }

  .btn-lang-toggle.active {
    background: #FFFFFF !important;
    color: var(--primary) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  }

  .btn-lang-toggle .lang-full {
    display: none !important;
  }

  .btn-lang-toggle .lang-short {
    display: inline-block !important;
  }

  @media (max-width: 360px) {
    body.lang-ta .header-title {
      font-size: 0.74rem !important;
      line-height: 1.45 !important;
      letter-spacing: -0.02em;
      padding: 4px 0 2px 0 !important;
    }
    .header-container {
      padding: 0 8px !important;
      gap: 5px;
    }
    .header-actions {
      gap: 4px;
    }
    .btn-lang-toggle {
      padding: 2px 5px !important;
      font-size: 0.66rem !important;
    }
    .btn-icon-header {
      width: 32px;
      height: 32px;
    }
  }

  /* ── 3. Sticky Bottom Navigation (Mobile First Shell - Material 3 5-Tab) ─────────────────── */
  .app-sidebar {
    display: none !important;
  }

  :root {
    --nav-h-mobile: 62px;
  }

  .app-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(var(--nav-h-mobile) + var(--safe-bottom)) !important;
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(231, 229, 228, 0.85);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    z-index: 120;
    box-shadow: 0 -3px 16px rgba(28, 25, 23, 0.06);
    user-select: none;
    -webkit-user-select: none;
  }

  .app-bottom-nav .nav-item {
    flex: 1;
    min-width: 0;
    height: var(--nav-h-mobile);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    outline: none;
    padding: 3px 2px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: var(--transition);
  }

  .app-bottom-nav .nav-item:active {
    transform: scale(0.93);
    transition: transform 0.1s ease;
  }

  .app-bottom-nav .nav-indicator {
    width: 52px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .app-bottom-nav .nav-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    stroke-width: 1.85px;
    transition: color 0.2s ease, stroke-width 0.2s ease, transform 0.2s ease;
  }

  .app-bottom-nav .nav-item span:not(.nav-badge) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: clamp(0.68rem, 2.3vw, 0.74rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-muted);
    transition: color 0.2s ease, font-weight 0.2s ease;
    letter-spacing: -0.01em;
  }

  /* Active Material 3 Pill State */
  .app-bottom-nav .nav-item.active .nav-indicator {
    background-color: rgba(224, 90, 71, 0.12);
  }

  .app-bottom-nav .nav-item.active svg {
    color: var(--primary);
    stroke-width: 2.3px;
    transform: scale(1.06);
  }

  .app-bottom-nav .nav-item.active span:not(.nav-badge) {
    color: var(--primary);
    font-weight: 700;
  }

  /* Remove old 3px top line */
  .app-bottom-nav .nav-item.active::before {
    display: none !important;
  }

  /* Mobile unread badge anchored cleanly on top of the indicator */
  .app-bottom-nav .nav-indicator .nav-badge {
    position: absolute;
    top: -2px;
    right: 8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    line-height: 1;
  }

  /* ── 4. Profile Cards & Natural Portrait Photo Aspect Ratio ──────────── */
  .profiles-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  @media (min-width: 520px) {
    .profiles-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 16px !important;
    }
  }

  .profile-card {
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    overflow: hidden;
  }

  /* Upgraded to natural 4:5 portrait aspect ratio for authentic matrimony presentation */
  .card-photo-wrapper {
    position: relative;
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    background-color: var(--border);
    overflow: hidden;
  }

  .card-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Focus on faces and attire */
  }

  .card-badges-top {
    top: 0.65rem !important;
    left: 0.65rem !important;
    gap: 0.25rem !important;
  }

  .card-status-badge {
    font-size: 0.65rem !important;
    padding: 0.18rem 0.5rem !important;
  }

  .card-premium-badge {
    font-size: 0.65rem !important;
    padding: 0.18rem 0.5rem !important;
  }

  .card-fav-btn {
    bottom: 0.65rem !important;
    right: 0.65rem !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
  }

  .card-info {
    padding: 0.90rem 1rem 1rem !important;
    gap: 8px !important;
  }

  .card-name {
    font-size: 1.10rem !important;
  }

  .card-meta-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    font-size: 0.80rem !important;
    gap: 5px !important;
  }

  .card-meta-item {
    width: auto !important;
    min-width: 0 !important;
  }

  .card-meta-dot {
    display: inline-block !important;
  }

  .card-tags {
    gap: 5px !important;
    margin: 2px 0 4px 0 !important;
    min-height: auto !important;
  }

  .card-tag {
    font-size: 0.70rem !important;
    padding: 2px 7px !important;
  }

  .card-actions {
    display: flex !important;
    gap: 8px !important;
    min-height: 42px !important;
    height: auto !important;
    padding-top: 2px !important;
  }

  .card-actions .btn {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 0.80rem !important;
    font-weight: 600 !important;
    padding: 0 0.5rem !important;
    border-radius: 24px !important;
  }

  .card-actions .btn-primary {
    background-color: var(--primary) !important;
    background-image: var(--primary-gradient) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(224, 90, 71, 0.28) !important;
  }

  .card-actions .btn-secondary {
    border: 1.5px solid var(--border-dark) !important;
    color: var(--text-main) !important;
  }

  body.lang-ta .card-name {
    font-size: 0.96rem !important;
  }

  body.lang-ta .card-meta-row {
    font-size: 0.74rem !important;
  }

  body.lang-ta .card-actions .btn {
    font-size: 0.74rem !important;
    padding: 0 0.35rem !important;
  }

  /* Home Horizontal Scroll Carousel on Mobile */
  .horizontal-scroll-container {
    gap: 16px !important;
    padding: 0.25rem 0 0.85rem !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .horizontal-scroll-container .profile-card {
    width: clamp(260px, 78vw, 295px) !important;
    min-width: clamp(260px, 78vw, 295px) !important;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  /* ── 5. Home Dashboard View ───────────────────────────────────────────── */
  .section-header {
    margin-bottom: 1.25rem !important;
  }

  .home-section {
    margin-bottom: 1.25rem !important;
  }

  .home-hero-header {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .home-magic-match-banner,
  .home-horoscope-banner {
    padding: 1rem 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 18px !important;
  }

  .banner-info,
  .horo-banner-info {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .banner-info h3,
  .horo-banner-info h3,
  .home-magic-match-banner h3,
  .home-horoscope-banner h3 {
    font-size: 0.98rem !important;
    line-height: 1.25 !important;
  }

  .banner-info p,
  .horo-banner-info p,
  .home-magic-match-banner p,
  .home-horoscope-banner p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .banner-action-wrapper,
  .horo-banner-action-wrapper {
    width: 100% !important;
  }

  .banner-action-wrapper .btn-white,
  .horo-banner-action-wrapper .btn-horo {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ── 6. Discover Search & Filters ─────────────────────────────────────── */
  .discover-container {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .discover-filter-panel {
    display: none !important; /* Left filter sidebar hidden on mobile */
  }

  .search-bar-header {
    gap: 8px !important;
    margin-bottom: 1rem !important;
  }

  .search-input-wrapper {
    position: relative !important;
  }

  .search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    width: 18px !important;
    height: 18px !important;
  }

  .search-input-wrapper .search-input-field,
  .search-input-wrapper .form-control,
  #discover-search-input,
  body.lang-ta .search-input-wrapper .search-input-field,
  body.lang-ta #discover-search-input {
    height: 44px !important;
    font-size: 0.9rem !important;
    padding-left: 46px !important;
    padding-right: 0.8rem !important;
    text-overflow: ellipsis !important;
  }

  .btn-mobile-filter {
    display: inline-flex !important;
    height: 44px !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 1rem !important;
    font-size: 0.86rem !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  /* Bottom sheet filter card */
  .bottom-sheet-card {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #FFFFFF;
    border-top-left-radius: 22px !important;
    border-top-right-radius: 22px !important;
    padding: 0.85rem 1rem calc(var(--safe-bottom) + 0.85rem) 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    max-height: 88dvh !important;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    display: flex !important;
    flex-direction: column !important;
  }

  .sheet-drag-handle {
    display: block !important;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background-color: #CBD5E1;
    margin: 0 auto 0.65rem auto;
    flex-shrink: 0;
  }

  .bottom-sheet-card .sheet-header {
    margin-bottom: 0.65rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
  }

  .bottom-sheet-card .filters-form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: calc(88dvh - 85px) !important;
    overflow: hidden !important;
    padding-right: 0 !important;
  }

  .bottom-sheet-card .sheet-scroll-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem !important;
  }

  .bottom-sheet-card .sheet-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: #FFFFFF !important;
    border-top: 1px solid var(--border-light) !important;
    padding-top: 0.75rem !important;
    margin-top: auto !important;
    z-index: 10;
    flex-shrink: 0;
    display: flex !important;
    gap: 0.75rem !important;
  }

  .bottom-sheet-card .sheet-actions .btn {
    flex: 1 !important;
    height: 44px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ── 7. Wizard Multi-Step Container & Form Rows ───────────────────────── */
  .wizard-container {
    width: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
  }

  .wizard-header {
    padding: calc(var(--safe-top) + 0.75rem) 1rem 0.75rem 1rem !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .wizard-title-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .wizard-header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    order: -1 !important;
    padding-bottom: 0.2rem !important;
  }

  .btn-wizard-home {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    background: rgba(28, 25, 23, 0.04) !important;
    color: var(--text-sub) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  #wizard-step-label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
  }

  .btn-wizard-exit {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    background: rgba(28, 25, 23, 0.04) !important;
    color: var(--text-sub) !important;
    white-space: nowrap !important;
  }

  .wizard-title-bar h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    width: 100% !important;
    color: var(--text-main) !important;
  }

  .wizard-field-guide {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
    margin: 0.25rem 0 0.55rem 0 !important;
    color: var(--text-muted) !important;
  }

  .wizard-progress-bar-container {
    height: 4px !important;
    margin-bottom: 0.65rem !important;
    border-radius: 999px !important;
  }

  .wizard-step-dots {
    display: flex !important;
    overflow-x: auto !important;
    gap: 0.4rem !important;
    padding-bottom: 0.35rem !important;
    -webkit-overflow-scrolling: touch;
  }

  .step-dot.tab-mode {
    padding: 0.32rem 0.75rem !important;
    font-size: 0.74rem !important;
    border-radius: 16px !important;
    flex-shrink: 0 !important;
  }

  .wizard-step {
    padding: 1rem !important;
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wizard-footer {
    padding: 0.85rem 1rem calc(var(--safe-bottom) + 0.85rem) 1rem !important;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .wizard-footer .btn {
    height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* Responsive Form Rows Stacking */
  .form-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .form-row.form-row-paired {
    flex-direction: row !important;
    gap: 0.75rem !important;
  }

  .form-row.form-row-paired .col {
    flex: 1;
    min-width: 0;
  }

  .form-group {
    margin-bottom: 0.85rem !important;
  }

  .form-control:not(.search-input-field) {
    min-height: 44px !important;
    font-size: 0.9rem !important;
    padding: 0.55rem 0.8rem !important;
    border-radius: 8px !important;
  }

  .form-control.search-input-field,
  #discover-search-input {
    min-height: 44px !important;
    font-size: 0.9rem !important;
    padding: 0.55rem 0.8rem 0.55rem 46px !important;
    border-radius: 8px !important;
  }

  body.lang-ta .form-control {
    font-size: 0.84rem !important;
  }

  .avatar-selection-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* ── 8. Prospect Profile Detail View (#view-profile-detail) ───────────── */
  .detail-page-container {
    padding-bottom: calc(76px + var(--safe-bottom)) !important;
    max-width: 100% !important;
  }

  .detail-profile-hero {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
  }

  /* Natural 4:5 portrait photo ratio */
  .detail-hero-photo-wrapper {
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .detail-hero-photo-wrapper img {
    object-position: top center;
  }

  .detail-header-nav {
    top: calc(var(--safe-top) + 0.75rem) !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    z-index: 100 !important;
    pointer-events: auto !important;
  }

  .btn-icon-back, .btn-icon-more {
    position: relative !important;
    z-index: 105 !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .slider-tap-zone {
    top: calc(var(--safe-top) + 68px) !important;
    z-index: 8 !important;
  }

  .detail-title-card {
    padding: 1.25rem 1rem 1rem !important;
    margin-top: -24px !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
  }

  .detail-title-row h2 {
    font-size: clamp(1.3rem, 4.8vw, 1.6rem) !important;
  }

  #detail-profile-job-location {
    font-size: 0.92rem !important;
    margin-bottom: 0.75rem !important;
  }

  .detail-content-sections {
    padding: 1rem 1rem calc(80px + var(--safe-bottom)) 1rem !important;
    gap: 1rem !important;
  }

  .detail-card {
    padding: 1.15rem 1rem !important;
    border-radius: 14px !important;
  }

  .detail-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.75rem !important;
  }

  .detail-table td {
    font-size: 0.88rem !important;
    padding: 0.55rem 0 !important;
  }

  /* ── Detail CTA Cards (Magic Match & Horoscope Compatibility) ──────── */
  .magic-match-detail-cta,
  .horo-compat-cta {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    gap: 0.75rem 0.85rem !important;
    padding: 1.15rem 1rem !important;
    border-radius: var(--radius-md, 12px) !important;
    margin: 0.5rem 0 !important;
  }

  .magic-match-detail-cta .magic-sparkles,
  .horo-compat-cta .horo-compat-cta-icon {
    grid-column: 1;
    grid-row: 1;
    font-size: 2rem !important;
    line-height: 1;
  }

  .magic-match-detail-cta .magic-cta-text,
  .horo-compat-cta .horo-compat-cta-text {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .magic-match-detail-cta .magic-cta-text h4,
  .horo-compat-cta .horo-compat-cta-text h4 {
    font-size: 1rem !important;
    line-height: 1.3;
    margin-bottom: 0.2rem;
  }

  .magic-match-detail-cta .magic-cta-text p,
  .horo-compat-cta .horo-compat-cta-text p {
    font-size: 0.80rem !important;
    line-height: 1.35;
  }

  /* Full-width action row underneath on mobile */
  .magic-match-detail-cta .btn-magic {
    grid-column: 1 / -1 !important;
    grid-row: 2;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.86rem !important;
    margin-top: 0.25rem;
    border-radius: var(--radius-sm, 8px) !important;
  }

  .horo-compat-cta .horo-compat-cta-actions {
    grid-column: 1 / -1 !important;
    grid-row: 2;
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 0.25rem;
  }

  .horo-compat-cta .horo-compat-cta-actions .btn-horo-compat,
  .horo-compat-cta .horo-compat-cta-actions .btn-horo-jathagam {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 0.82rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 0.5rem !important;
    border-radius: var(--radius-sm, 8px) !important;
  }

  body.lang-ta .horo-compat-cta .horo-compat-cta-actions .btn-horo-compat,
  body.lang-ta .horo-compat-cta .horo-compat-cta-actions .btn-horo-jathagam {
    font-size: 0.74rem !important;
    padding: 0 0.35rem !important;
  }

  /* Sticky Action Bar at the Bottom */
  .detail-bottom-sticky-bar {
    padding: 0.65rem 0.85rem calc(var(--safe-bottom) + 0.65rem) 0.85rem !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 100;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .detail-bottom-sticky-bar .btn {
    height: 46px !important;
    min-height: 46px !important;
    font-size: 0.92rem !important;
    font-weight: 600;
    border-radius: 12px !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  /* CRITICAL: Ensure hidden buttons in detail sticky bar are never displayed */
  .detail-bottom-sticky-bar .btn.hidden,
  .detail-bottom-sticky-bar .btn[hidden],
  .detail-bottom-sticky-bar .hidden,
  .detail-bottom-sticky-bar [hidden] {
    display: none !important;
  }

  .detail-bottom-sticky-bar .btn span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: inline-block !important;
  }

  .detail-bottom-sticky-bar .btn svg {
    flex-shrink: 0 !important;
  }

  #btn-detail-shortlist {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s ease;
  }

  #btn-detail-shortlist.btn-primary,
  #btn-detail-shortlist.active {
    background: #fff1f2 !important;
    border-color: #fda4af !important;
    color: #e11d48 !important;
  }

  #btn-detail-shortlist.hidden {
    display: none !important;
  }

  #btn-detail-shortlist #detail-shortlist-text {
    display: none !important;
  }

  #btn-detail-shortlist #detail-shortlist-icon {
    font-size: 1.35rem !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  #btn-detail-decline {
    border-color: #e2e8f0;
    color: #64748b;
  }

  #btn-detail-decline:hover,
  #btn-detail-decline:active {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
  }

  body.lang-ta .detail-bottom-sticky-bar .btn {
    font-size: 0.84rem !important;
    letter-spacing: -0.01em !important;
  }

  /* ── 9. Welcome & Auth Screens ────────────────────────────────────────── */
  .welcome-container {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100dvh !important;
  }

  .welcome-hero-panel {
    height: 38dvh !important;
    min-height: 210px !important;
    padding: calc(var(--safe-top) + 1.25rem) 1.25rem 1.25rem !important;
  }

  .welcome-logo {
    font-size: clamp(1.6rem, 5.8vw, 2.1rem) !important;
  }

  .welcome-tagline {
    font-size: 0.88rem !important;
  }

  .welcome-action-panel {
    flex: 1;
    padding: 1.25rem 1.25rem calc(var(--safe-bottom) + 1.25rem) 1.25rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    gap: 1.25rem !important;
  }

  .welcome-form-header {
    margin-bottom: 0 !important;
  }

  .welcome-heading {
    font-size: clamp(1.25rem, 4.5vw, 1.55rem) !important;
    margin-bottom: 0.35rem !important;
  }

  .welcome-subtext {
    font-size: 0.86rem !important;
    margin-bottom: 0 !important;
  }

  .welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem !important;
    margin-bottom: 0 !important;
  }

  .welcome-buttons .btn {
    height: 46px;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .auth-container {
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: calc(var(--safe-top) + 0.85rem) 1.25rem calc(var(--safe-bottom) + 1.25rem) 1.25rem !important;
    background-color: var(--bg-app) !important;
  }

  .auth-header-bar {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .btn-back {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    background: none !important;
    border: none !important;
    padding: 0.25rem 0.5rem 0.25rem 0 !important;
    cursor: pointer !important;
  }

  .auth-card {
    padding: 0.5rem 0 1.5rem 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .auth-title {
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.35rem !important;
    color: var(--text-main) !important;
  }

  .auth-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1.75rem !important;
    color: var(--text-sub) !important;
  }

  .auth-card .form-group {
    margin-bottom: 1.15rem !important;
  }

  .auth-card .form-actions {
    margin-top: 1.5rem !important;
  }

  .auth-card .btn-primary {
    min-height: 48px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }

  .auth-switch {
    margin-top: 1.5rem !important;
    font-size: 0.9rem !important;
  }

  /* ── 10. Messages & Chat Views ────────────────────────────────────────── */
  .messages-layout-grid {
    grid-template-columns: 1fr !important;
    height: calc(100dvh - var(--header-h-mobile) - var(--nav-h-mobile) - var(--safe-bottom) - 16px) !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .convo-item {
    padding: 0.75rem 0.85rem !important;
  }

  .conversations-panel {
    display: flex;
    height: 100%;
  }

  .conversations-panel.hidden-mobile {
    display: none !important;
  }

  .chat-main-panel {
    display: none;
    height: auto !important;
    position: fixed !important;
    top: calc(var(--header-h-mobile) + var(--safe-top)) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(var(--nav-h-mobile) + var(--safe-bottom)) !important;
    background-color: #FFFFFF;
    z-index: 105;
  }

  .chat-main-panel.active-mobile {
    display: flex !important;
  }

  .btn-chat-back-mobile {
    display: inline-flex !important;
  }

  .message-bubble {
    max-width: 82% !important;
    font-size: 0.9rem;
  }

  .chat-input-bar {
    flex-shrink: 0 !important;
    padding: 8px 10px !important;
    gap: 6px;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
  }

  .chat-input-field {
    height: 40px !important;
    font-size: 0.9rem !important;
  }

  .btn-chat-send {
    height: 40px !important;
    padding: 0 0.85rem !important;
  }

  /* ── 11. Modals & Native Android Bottom Sheets ────────────────────────── */
  .modal-overlay {
    align-items: flex-end !important;
    background-color: rgba(28, 25, 23, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  .sheet-drag-handle {
    display: block !important;
    width: 38px !important;
    height: 4.5px !important;
    border-radius: 999px !important;
    background-color: #D6D3D1 !important;
    margin: 4px auto 10px auto !important;
    flex-shrink: 0 !important;
    cursor: grab;
  }

  .magic-modal-card,
  .private-prefs-card,
  .bottom-sheet-card,
  .horo-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh !important;
    border-radius: 24px 24px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: none !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0.65rem 0 0 0 !important;
    box-shadow: 0 -8px 32px rgba(28, 25, 23, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: sheetSlideUp 0.28s cubic-bezier(0.2, 0, 0, 1) forwards !important;
    background-color: #FFFFFF !important;
  }

  @keyframes sheetSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .sheet-header,
  .modal-header-private,
  .horo-modal-header {
    padding: 0.25rem 1.25rem 0.75rem 1.25rem !important;
    border-bottom: 1px solid var(--border-light) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
  }

  .sheet-header h3,
  .modal-header-private h3,
  .horo-modal-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 !important;
  }

  .btn-sheet-close,
  .btn-modal-close {
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background-color: rgba(28, 25, 23, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-sub) !important;
    font-size: 0.95rem !important;
    border: none !important;
    flex-shrink: 0 !important;
  }

  .btn-sheet-close:active,
  .btn-modal-close:active {
    transform: scale(0.92) !important;
    background-color: rgba(28, 25, 23, 0.12) !important;
  }

  /* Sheet internal body scrolling */
  .sheet-scroll-body,
  .private-prefs-card > form,
  .magic-modal-card > .magic-modal-phase,
  .horo-modal-card > .horo-modal-content,
  #notifications-list-container,
  #blocked-profiles-list {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0.85rem 1.25rem !important;
  }

  .magic-modal-card {
    max-height: 80dvh !important;
  }

  .magic-modal-card > #magic-phase-intro {
    padding: 0.5rem 1.15rem 1rem 1.15rem !important;
  }

  #magic-prompt-text {
    font-size: 0.92rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    padding-right: 2.25rem !important;
  }

  .magic-thoughts-card {
    padding: 0.75rem 0.85rem 0.85rem 0.85rem !important;
    margin-bottom: 0.95rem !important;
  }

  .magic-textarea {
    font-size: 0.88rem !important;
    min-height: 95px !important;
    padding: 0.65rem 0.75rem !important;
  }

  .private-prefs-card > p.private-explanation {
    padding: 0.5rem 1.25rem 0 1.25rem !important;
    margin: 0 0 0.5rem 0 !important;
    flex-shrink: 0 !important;
  }

  /* Sticky footer action bar with safe-area padding */
  .sheet-actions,
  .modal-actions-row {
    padding: 0.85rem 1.25rem calc(var(--safe-bottom) + 0.85rem) 1.25rem !important;
    background: #FFFFFF !important;
    border-top: 1px solid var(--border-light) !important;
    box-shadow: 0 -3px 12px rgba(28, 25, 23, 0.05) !important;
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
  }

  .sheet-actions .btn,
  .modal-actions-row .btn {
    flex: 1 !important;
    height: 44px !important;
    border-radius: 24px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ── 12. Interests Tab Layout ─────────────────────────────────────────── */
  .interests-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .tabs-header {
    gap: 0.75rem !important;
    margin-bottom: 1.15rem !important;
  }

  .tab-btn {
    font-size: 0.82rem !important;
    padding: 0.5rem 0.25rem !important;
  }

  body.lang-ta .tabs-header {
    gap: 0.55rem !important;
  }

  body.lang-ta .tab-btn,
  body.lang-ta .tabs-header .tab-btn {
    font-size: 0.70rem !important;
    padding: 0.45rem 0.2rem !important;
    letter-spacing: -0.01em;
    line-height: 1.25;
  }

  /* ── 13. Profile & Settings Subview (Material 3 Mobile) ───────────────── */
  .my-profile-container {
    padding: 0.25rem 0.25rem calc(var(--safe-bottom) + 1.5rem) 0.25rem !important;
  }

  .my-profile-header-card {
    padding: 1.15rem 1rem !important;
    border-radius: 16px !important;
    margin-bottom: 1.15rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .my-avatar-wrapper,
  .my-profile-avatar-wrap {
    position: relative !important;
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
  }

  .my-avatar,
  .my-profile-avatar-wrap img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    border: 2.5px solid #FFFFFF !important;
    box-shadow: 0 3px 10px rgba(28, 25, 23, 0.10) !important;
  }

  .my-avatar-badge,
  .profile-avatar-badge {
    width: 20px !important;
    height: 20px !important;
  }

  .my-profile-header-details,
  .my-profile-info {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .my-profile-header-details h2,
  .my-profile-info h2 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  .my-profile-header-details p,
  .my-profile-info p {
    font-size: 0.82rem !important;
    color: var(--text-sub) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .btn-profile-quick-edit {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.82rem !important;
    border-radius: 12px !important;
    margin-top: 4px !important;
  }

  .settings-card {
    border-radius: 16px !important;
  }

  .profile-menu-item {
    padding: 0.85rem 0.95rem !important;
    gap: 0.85rem !important;
  }

  .menu-icon-container {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .menu-icon-container svg {
    width: 18px !important;
    height: 18px !important;
  }

  .profile-menu-item .menu-label h4 {
    font-size: 0.88rem !important;
  }

  .profile-menu-item .menu-label p {
    font-size: 0.75rem !important;
  }

  body.lang-ta .settings-section-label {
    font-size: 0.63rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    padding: 0.28rem 0.65rem 0.2rem !important;
  }

  body.lang-ta .settings-group {
    margin-bottom: 0.85rem !important;
  }

  body.lang-ta .profile-menu-item {
    padding: 0.68rem 0.85rem !important;
    gap: 0.75rem !important;
  }

  body.lang-ta .menu-icon-container {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  body.lang-ta .menu-icon-container svg {
    width: 18px !important;
    height: 18px !important;
  }

  body.lang-ta .profile-menu-item .menu-label h4 {
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
    margin: 0 0 0.12rem 0 !important;
  }

  body.lang-ta .profile-menu-item .menu-label p {
    font-size: 0.66rem !important;
    line-height: 1.30 !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
  }

  body.lang-ta .btn-profile-quick-edit {
    font-size: 0.76rem !important;
    padding: 0.45rem 0.85rem !important;
  }

  body.lang-ta .card-status-badge {
    font-size: 0.60rem !important;
    padding: 0.12rem 0.42rem !important;
  }

  /* Edit Profile Mobile Adjustments */
  .edit-photos-grid {
    gap: 0.5rem !important;
  }

  .photo-slot-item {
    padding: 0.85rem 0.35rem 0.6rem 0.35rem !important;
  }

  .photo-slot-preview-box {
    width: 68px !important;
    height: 68px !important;
  }

  .photo-slot-item.is-primary .photo-slot-preview-box {
    width: 82px !important;
    height: 82px !important;
  }

  .photo-slot-item.is-single {
    padding: 1.25rem 1rem 1rem 1rem !important;
  }

  .photo-slot-item.is-single .photo-slot-preview-box {
    width: 110px !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 12px !important;
  }

  .photo-slot-item.is-single .photo-slot-actions .btn {
    font-size: 0.8rem !important;
    padding: 5px 12px !important;
  }

  .photo-slot-caption {
    font-size: 0.65rem !important;
  }

  .edit-profile-header-bar {
    padding: 0.6rem 0.85rem !important;
  }

  .edit-profile-scroll-body {
    padding: 0.85rem !important;
  }

  .edit-card {
    padding: 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  /* ── 4:5 Cropper Mobile Responsive Layout ── */
  #modal-image-cropper {
    padding: 0.75rem !important;
  }

  .cropper-modal-container {
    max-height: 95vh !important;
    border-radius: 16px !important;
  }

  .cropper-workspace {
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
  }

  .cropper-body {
    padding: 0.85rem !important;
    gap: 0.65rem !important;
  }

  .cropper-footer {
    padding: 0.75rem 1rem !important;
  }

  /* ── Daily Quotas & Stats Mobile Styles ── */
  .quota-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    padding: 1.5rem 1.25rem 1.25rem 1.25rem !important;
    max-height: 92vh !important;
  }

  .quota-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .quota-upgrade-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .quota-upgrade-banner .btn {
    width: 100% !important;
  }
}
