/* ============================================
   MOBILE STYLES FOR UNIFIED DASHBOARD - iOS Style
   These styles apply on screens 768px and below
   ============================================ */

/* Hide mobile elements on desktop */
.mobile-header,
.mobile-bottom-nav,
.mobile-side-menu,
.mobile-menu-overlay,
.mobile-profile-card,
.mobile-stats-grid,
.welcome-header.mobile-only {
    display: none;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    /* CRITICAL: Hide filter elements that create space */
    .filter-compact,
    .age-filter,
    .search-controls,
    div[class*="filter-compact"],
    div[class*="age-filter"],
    div[class*="search-controls"] {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: hidden !important;
    }
    
    /* Hide desktop search controls on mobile */
    .desktop-search-controls {
        display: none !important;
    }
    
    /* Show mobile-only elements - JavaScript can override with inline styles */
    .mobile-only {
        display: block;
    }
    
    /* Show mobile home elements by default on mobile */
    .mobile-profile-card,
    .mobile-stats-grid {
        display: block;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-profile-card {
        background: white;
        border-radius: 16px;
        padding: 24px;
        margin: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .mobile-stats-grid {
        display: grid;
    }
    
    /* When hidden by JavaScript, remove all space */
    .mobile-profile-completion[style*="display: none"],
    .mobile-profile-card[style*="display: none"],
    .mobile-stats-grid[style*="display: none"],
    .welcome-header.mobile-only[style*="display: none"] {
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .mobile-only.search-header-compact,
    .mobile-only.btn-filter-toggle {
        display: flex !important;
    }
    
    .mobile-only.mobile-bottom-nav {
        display: flex !important;
    }
    
    /* Show mobile header on mobile */
    .mobile-header {
        display: flex !important;
    }
    
    /* Hide welcome header and profile card on non-home pages */
    body:not(.on-home-page) .welcome-header.mobile-only,
    body:not(.on-home-page) .mobile-profile-card,
    body:not(.on-home-page) .mobile-stats-grid,
    body:not(.on-home-page) .mobile-profile-completion,
    body:not(.on-home-page) .mobile-quick-actions {
        display: none !important;
    }
    
    /* Show welcome header and profile card only on home page */
    body.on-home-page .welcome-header.mobile-only,
    body.on-home-page .mobile-profile-card,
    body.on-home-page .mobile-profile-completion,
    body.on-home-page .mobile-quick-actions {
        display: block !important;
    }
    
    body.on-home-page .mobile-stats-grid {
        display: grid !important;
    }
    
    /* Body - iOS background */
    body {
        background: #F2F2F7 !important;
        -webkit-tap-highlight-color: transparent;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overscroll-behavior: none;
    }
    
    /* Smooth scrolling for all elements */
    * {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Native app-like container */
    .app-container {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    /* Hide status bar on mobile */
    .status-bar {
        display: none !important;
    }
    
    /* App Header - Native iOS style */
    .app-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background: rgba(249, 249, 249, 0.94) !important;
        backdrop-filter: saturate(180%) blur(20px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.1) !important;
        padding: 12px 16px !important;
        padding-top: calc(12px + env(safe-area-inset-top, 0)) !important;
    }
    
    /* Menu button - ensure clickable */
    .menu-btn {
        width: 44px !important;
        height: 44px !important;
        border: none !important;
        background: transparent !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #007AFF !important;
        font-size: 1.25rem !important;
        cursor: pointer !important;
        z-index: 101 !important;
        pointer-events: auto !important;
    }
    
    .menu-btn:active {
        background: rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Main content with safe area */
    .main-content {
        padding: 16px !important;
        padding-bottom: 90px !important;
        background: #F2F2F7 !important;
        min-height: auto !important;
    }
    
    /* Section styling */
    .section {
        padding: 0 !important;
    }
    
    /* Section header - Native style */
    .section-header {
        display: flex !important;
        align-items: center !important;
        padding: 16px 0 !important;
        margin-bottom: 12px !important;
        background: transparent !important;
    }
    
    .section-header h2 {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #000 !important;
        flex: 1 !important;
        text-align: center !important;
    }
    
    .section-header .back-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #007AFF !important;
        font-size: 1.1rem !important;
    }
    
    /* Bottom Navigation - Native iOS style */
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        background: rgba(249, 249, 249, 0.94) !important;
        backdrop-filter: saturate(180%) blur(20px) !important;
        -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
        border-top: 0.5px solid rgba(0, 0, 0, 0.1) !important;
        padding: 8px 0 !important;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0)) !important;
        z-index: 9999 !important;
    }
    
    .bottom-nav .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 8px 16px !important;
        background: transparent !important;
        border: none !important;
        color: #8E8E93 !important;
        font-size: 0.65rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: color 0.2s ease !important;
    }
    
    .bottom-nav .nav-item i {
        font-size: 1.5rem !important;
    }
    
    .bottom-nav .nav-item.active {
        color: #007AFF !important;
    }
    
    /* Cards - Native iOS style */
    .widget-card,
    .card,
    .info-section {
        background: #FFFFFF !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        box-shadow: none !important;
        border: none !important;
        padding: 16px !important;
    }
    
    /* Specific spacing for key widgets */
    .welcome-widget {
        margin-bottom: 20px !important;
    }
    
    .status-widget {
        margin-bottom: 24px !important;
    }
    
    /* Buttons - Native iOS style */
    .btn-primary {
        background: #007AFF !important;
        color: white !important;
        border: none !important;
        border-radius: 10px !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: opacity 0.2s ease !important;
    }
    
    .btn-primary:active {
        opacity: 0.7 !important;
    }
    
    /* Inputs - Native iOS style */
    input, select, textarea {
        background: #FFFFFF !important;
        border: 1px solid #E5E5EA !important;
        border-radius: 10px !important;
        padding: 12px 16px !important;
        font-size: 1rem !important;
        color: #000 !important;
        transition: border-color 0.2s ease !important;
    }
    
    input:focus, select:focus, textarea:focus {
        border-color: #007AFF !important;
        outline: none !important;
    }
    
    /* Touch feedback for all interactive elements */
    button:active, 
    .nav-item:active, 
    .side-menu-item:active,
    .settings-item:active,
    .match-card:active {
        opacity: 0.7 !important;
        transform: scale(0.98) !important;
    }
    
    /* Prevent text selection on buttons */
    button, .nav-item, .side-menu-item, .settings-item {
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* ===== MOBILE HEADER - Two row layout ===== */
    .mobile-header {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        z-index: 10001 !important;
        background: rgba(249, 249, 249, 0.94);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
        padding: 0 16px;
        padding-top: env(safe-area-inset-top, 0);
        pointer-events: auto !important;
    }
    
    .mobile-header * {
        pointer-events: auto !important;
    }
    
    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        z-index: 10002 !important;
        pointer-events: auto !important;
    }
    
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        font-size: 1.25rem;
        cursor: pointer;
        transition: background 0.2s ease;
        z-index: 10002 !important;
        pointer-events: auto !important;
    }
    
    .mobile-menu-btn:active {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        z-index: 10002 !important;
        pointer-events: auto !important;
    }
    
    .mobile-notification-btn {
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        font-size: 1.1rem;
        position: relative;
        cursor: pointer;
        transition: background 0.2s ease;
        z-index: 10002 !important;
        pointer-events: auto !important;
    }
    
    .mobile-notification-btn:active {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .mobile-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        min-width: 18px;
        height: 18px;
        background: #FF2D55;
        color: white;
        font-size: 0.65rem;
        font-weight: 600;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
    }
    
    .mobile-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        z-index: 10002 !important;
        pointer-events: auto !important;
    }
    
    .mobile-avatar:active {
        transform: scale(0.95);
    }
    
    .mobile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: #f5f5f5;
    }
    
    .mobile-header-greeting {
        padding: 0 0 12px 0;
    }
    
    .mobile-greeting-text {
        font-size: 0.85rem;
        color: #8E8E93;
        font-weight: 500;
        display: block;
        margin-bottom: 2px;
    }
    
    .mobile-header-greeting h1 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #000;
        letter-spacing: -0.5px;
        margin: 0;
    }
    
    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0 !important;
        padding-bottom: 100px !important;
    }
    
    /* Content container */
    .content-container {
        padding: 16px !important;
    }
    
    /* ===== BOTTOM NAVIGATION ===== */
    .mobile-bottom-nav {
        display: flex;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: rgba(249, 249, 249, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-top: 0.5px solid rgba(0, 0, 0, 0.1);
        padding: 8px 0 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
        z-index: 9999 !important;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        margin: 0 !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Ensure body has proper padding to prevent content being hidden behind nav */
    @media (max-width: 768px) {
        body {
            padding-bottom: 80px !important;
        }
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 16px;
        background: transparent;
        border: none;
        color: #8E8E93;
        font-size: 0.7rem;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.2s ease;
    }
    
    .mobile-nav-item i {
        font-size: 1.4rem;
    }
    
    .mobile-nav-item.active {
        color: #007AFF;
    }
    
    /* ===== SIDE MENU ===== */
    .side-menu-overlay,
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 10010 !important;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: auto !important;
    }
    
    .side-menu-overlay.active,
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .side-menu,
    .mobile-side-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        background: #FFFFFF;
        z-index: 10011 !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        pointer-events: auto !important;
    }
    
    .side-menu.active,
    .mobile-side-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-header,
    .side-menu-header {
        padding: 20px;
        background: linear-gradient(135deg, #FF2D55 0%, #FF6B9D 100%);
        color: white;
    }
    
    .mobile-menu-header img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.3);
        margin-bottom: 12px;
    }
    
    .mobile-menu-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
    }
    
    .mobile-menu-header p {
        font-size: 0.85rem;
        opacity: 0.9;
        margin: 4px 0 0 0;
    }
    
    .mobile-menu-close,
    .close-menu-btn {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10012 !important;
        pointer-events: auto !important;
    }
    
    .mobile-menu-nav,
    .side-menu-nav {
        flex: 1;
        padding: 16px 0;
        overflow-y: auto;
    }
    
    .mobile-menu-item,
    .side-menu-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 20px;
        color: #000;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 400;
        pointer-events: auto !important;
    }
    
    .mobile-menu-item:active,
    .side-menu-item:active {
        background: #F2F2F7;
    }
    
    .mobile-menu-item i,
    .side-menu-item i {
        width: 24px;
        text-align: center;
        color: #8E8E93;
        font-size: 1.1rem;
    }
    
    .mobile-menu-item.logout,
    .side-menu-item.logout,
    .logout-btn {
        color: #FF3B30;
    }
    
    .mobile-menu-item.logout i,
    .side-menu-item.logout i,
    .logout-btn i {
        color: #FF3B30;
    }
    
    .mobile-menu-divider,
    .side-menu-divider {
        height: 0.5px;
        background: #C6C6C8;
        margin: 8px 20px;
    }
    
    .mobile-menu-footer,
    .side-menu-footer {
        padding: 16px 20px;
        border-top: 0.5px solid #C6C6C8;
    }
    
    .logout-btn {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 20px;
        width: 100%;
        background: transparent;
        border: none;
        font-size: 1rem;
        cursor: pointer;
    }
    
    /* ===== CONTENT SECTIONS ===== */
    .content-section {
        display: none !important;
    }
    
    .content-section.active {
        display: block !important;
    }
    
    /* ===== DESKTOP HEADER - Hide on mobile ===== */
    .top-header,
    .main-header {
        display: none !important;
    }
    
    /* Hide desktop welcome-header on mobile, show mobile-only one */
    .content-section .welcome-header {
        display: none !important;
    }
    
    .welcome-header.mobile-only {
        display: block !important;
        margin-bottom: 0;
        padding: 16px 16px 0 16px;
    }
    
    /* Cards - iOS style */
    .card,
    .widget-card,
    .info-section {
        background: #FFFFFF !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        box-shadow: none !important;
        border: none !important;
        padding: 16px !important;
    }
    
    /* Welcome/Hero Widget - iOS gradient */
    .welcome-widget,
    .promo-card.progress-promo {
        background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%) !important;
        border-radius: 16px !important;
        padding: 24px 20px !important;
        margin-bottom: 16px !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3) !important;
    }
    
    .promo-card.progress-promo .promo-progress .promo-track {
        background: rgba(255, 255, 255, 0.3) !important;
    }
    
    .promo-card.progress-promo .promo-progress .promo-bar {
        background: white !important;
    }
    
    .promo-card.progress-promo .promo-percent {
        color: white !important;
        font-weight: 700 !important;
    }
    
    .promo-card.progress-promo h4,
    .promo-card.progress-promo p {
        color: white !important;
    }
    
    .promo-card.progress-promo .btn-promo {
        background: white !important;
        color: #007AFF !important;
        font-weight: 700 !important;
    }
    
    /* Other promo cards - keep original style */
    .promo-card:not(.progress-promo) {
        background: #FFFFFF !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
    }
    
    /* Status Banner - iOS style - HIDDEN ON MOBILE */
    .status-banner {
        display: none !important;
    }
    
    /* Quick Action Buttons - HIDDEN ON MOBILE */
    .quick-action-buttons {
        display: none !important;
    }
    
    /* Hide desktop status-actions on mobile */
    .status-banner .status-actions {
        display: none !important;
    }
    
    .quick-action-buttons .points-display {
        background: linear-gradient(135deg, #FF2D55 0%, #FF6B9D 100%);
        color: white;
        padding: 12px 16px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        flex: 1;
        justify-content: center;
    }
    
    .quick-action-buttons .btn-boost-profile,
    .quick-action-buttons .btn-view-profile {
        background: #FFFFFF;
        color: #000;
        border: none;
        padding: 12px 16px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        flex: 1;
        justify-content: center;
    }
    
    .quick-action-buttons .btn-boost-profile i {
        color: #FF2D55;
    }
    
    .quick-action-buttons .btn-view-profile i {
        color: #007AFF;
    }
    
    /* Stats grid - iOS style - horizontal on same line */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
        overflow-x: visible;
    }
    
    /* All items on same row */
    .stats-grid .stat-card {
        min-width: 0;
    }
    
    .stats-grid .stat-card:nth-child(3) {
        grid-column: auto;
    }
    
    .stat-widget,
    .stat-card {
        background: #FFFFFF !important;
        border-radius: 12px !important;
        padding: 14px !important;
        box-shadow: none !important;
        border: none !important;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .stat-visual {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .stat-visual i {
        font-size: 1.25rem !important;
        color: white !important;
    }
    
    .stat-visual.blue { background: #007AFF !important; }
    .stat-visual.green { background: #34C759 !important; }
    .stat-visual.purple { background: #AF52DE !important; }
    .stat-visual.pink { background: #FF2D55 !important; }
    .stat-visual.orange { background: #FF9500 !important; }
    
    .stat-icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .stat-icon i {
        font-size: 1.25rem !important;
        color: white !important;
    }
    
    /* iOS system colors for icons */
    .bg-pink, .icon-pink { background: #FF2D55 !important; }
    .bg-blue, .icon-blue { background: #007AFF !important; }
    .bg-green, .icon-green { background: #34C759 !important; }
    .bg-purple, .icon-purple { background: #AF52DE !important; }
    .bg-orange, .icon-orange { background: #FF9500 !important; }
    .bg-red { background: #FF3B30 !important; }
    
    .stat-number,
    .stat-value {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        color: #000 !important;
    }
    
    .stat-desc,
    .stat-label {
        font-size: 0.75rem !important;
        color: #8E8E93 !important;
    }
    
    .stat-data {
        display: flex;
        flex-direction: column;
    }
    
    /* ===== MOBILE PROFILE CARD ===== */
    .mobile-profile-card {
        display: block;
        background: #FFFFFF;
        border-radius: 16px;
        margin: 16px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    /* Welcome Text */
    .mobile-welcome-text {
        text-align: center;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #F0F0F0;
    }
    
    .mobile-welcome-text h2 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #000;
        margin: 0 0 4px 0;
    }
    
    .mobile-welcome-text p {
        font-size: 0.9rem;
        color: #8E8E93;
        margin: 0;
    }
    
    .mobile-profile-card .profile-header-centered {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mobile-profile-card .profile-avatar-large {
        position: relative;
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }
    
    .mobile-profile-card .profile-avatar-large img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #FFFFFF;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-profile-card .online-badge {
        position: absolute;
        bottom: 4px;
        right: 4px;
        width: 16px;
        height: 16px;
        background: #34C759;
        border-radius: 50%;
        border: 2px solid #FFFFFF;
    }
    
    .mobile-profile-card .verified-badge {
        position: absolute;
        bottom: 4px;
        left: 4px;
        width: 22px;
        height: 22px;
        background: #007AFF;
        border-radius: 50%;
        border: 2px solid #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-profile-card .verified-badge i {
        color: white;
        font-size: 0.65rem;
    }
    
    .mobile-profile-card .profile-name-centered {
        font-size: 1.1rem;
        font-weight: 600;
        color: #000;
        margin: 0 0 4px 0;
    }
    
    .mobile-profile-card .location-centered {
        font-size: 0.85rem;
        color: #8E8E93;
        margin: 0;
    }
    
    .mobile-profile-card .location-centered i {
        margin-right: 4px;
    }
    
    /* Hide desktop profile card on mobile */
    .dashboard-sidebar .dash-card.profile-card {
        display: none !important;
    }
    
    /* Show mobile profile card on mobile */
    .mobile-profile-card {
        display: block !important;
    }
    
    /* Mobile Stats Grid */
    .mobile-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 16px 16px 16px;
    }
    
    .mobile-stats-grid .stat-card {
        background: #FFFFFF;
        border-radius: 12px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-stats-grid .stat-visual {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .mobile-stats-grid .stat-visual i {
        color: white;
        font-size: 1rem;
    }
    
    .mobile-stats-grid .stat-visual.blue { background: #007AFF; }
    .mobile-stats-grid .stat-visual.green { background: #34C759; }
    .mobile-stats-grid .stat-visual.purple { background: #AF52DE; }
    
    .mobile-stats-grid .stat-data {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-stats-grid .stat-number {
        font-size: 1.1rem;
        font-weight: 600;
        color: #000;
    }
    
    .mobile-stats-grid .stat-desc {
        font-size: 0.65rem;
        color: #8E8E93;
        white-space: nowrap;
    }
    
    /* Hide desktop stats grid on mobile */
    .dashboard-main .stats-grid {
        display: none !important;
    }
    
    /* Profile cards - iOS style */
    .matches-grid,
    .profiles-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .profile-card {
        background: #FFFFFF !important;
        border-radius: 16px !important;
        overflow: hidden;
        box-shadow: none !important;
    }
    
    .profile-card img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
    }
    
    .profile-card-info {
        padding: 12px;
    }
    
    .profile-card-info h4 {
        font-size: 1rem;
        font-weight: 600;
        color: #000;
        margin: 0 0 4px 0;
    }
    
    .profile-card-info p {
        font-size: 0.85rem;
        color: #8E8E93;
        margin: 0;
    }
    
    /* Buttons - iOS style */
    .btn-primary {
        background: #007AFF !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        padding: 14px 20px !important;
    }
    
    .btn-secondary {
        background: #F2F2F7 !important;
        color: #007AFF !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        padding: 14px 20px !important;
    }
    
    .btn-danger {
        background: #FF3B30 !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        padding: 14px 20px !important;
    }
    
    /* Forms - iOS style */
    input, select, textarea {
        background: #FFFFFF !important;
        border: none !important;
        border-radius: 10px !important;
        padding: 14px 16px !important;
        font-size: 1rem !important;
    }
    
    input:focus, select:focus, textarea:focus {
        box-shadow: 0 0 0 2px #007AFF !important;
    }
    
    /* Lists - iOS style */
    .list-group {
        background: #FFFFFF;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .list-item {
        padding: 14px 16px;
        border-bottom: 0.5px solid #C6C6C8;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .list-item:last-child {
        border-bottom: none;
    }
    
    /* Section headers - iOS style */
    .section-header {
        font-size: 1.25rem;
        font-weight: 700;
        color: #000;
        margin: 24px 0 12px 0;
        padding: 0 4px;
    }
    
    /* Tab bar - iOS style */
    .tab-bar {
        display: flex;
        background: #FFFFFF;
        border-radius: 10px;
        padding: 4px;
        margin-bottom: 16px;
    }
    
    .tab-item {
        flex: 1;
        padding: 10px;
        text-align: center;
        border-radius: 8px;
        font-weight: 500;
        font-size: 0.9rem;
        color: #8E8E93;
        cursor: pointer;
    }
    
    .tab-item.active {
        background: #007AFF;
        color: white;
    }
    
    /* Action sheets - iOS style */
    .action-sheet {
        background: #FFFFFF;
        border-radius: 16px 16px 0 0;
        padding: 20px;
        margin-top: auto;
    }
    
    .action-sheet-item {
        padding: 16px;
        text-align: center;
        border-bottom: 0.5px solid #C6C6C8;
        font-size: 1.1rem;
        color: #007AFF;
    }
    
    .action-sheet-item:last-child {
        border-bottom: none;
    }
    
    .action-sheet-item.destructive {
        color: #FF3B30;
    }
    
    /* Modals - iOS style */
    .modal-content {
        background: #FFFFFF;
        border-radius: 16px;
        margin: 20px;
        overflow: hidden;
    }
    
    .modal-header {
        padding: 20px;
        text-align: center;
        border-bottom: 0.5px solid #C6C6C8;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        display: flex;
        border-top: 0.5px solid #C6C6C8;
    }
    
    .modal-footer button {
        flex: 1;
        padding: 16px;
        background: transparent;
        border: none;
        font-size: 1.1rem;
        color: #007AFF;
        font-weight: 400;
    }
    
    .modal-footer button:first-child {
        border-right: 0.5px solid #C6C6C8;
    }
    
    .modal-footer button.destructive {
        color: #FF3B30;
        font-weight: 600;
    }
    
    /* Alerts - iOS style */
    .alert {
        background: #FFFFFF;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    
    .alert-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .alert-success .alert-icon { background: #34C759; }
    .alert-warning .alert-icon { background: #FF9500; }
    .alert-error .alert-icon { background: #FF3B30; }
    .alert-info .alert-icon { background: #007AFF; }
    
    .alert-icon i {
        color: white;
        font-size: 0.8rem;
    }
    
    .alert-content h4 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 4px 0;
    }
    
    .alert-content p {
        font-size: 0.9rem;
        color: #8E8E93;
        margin: 0;
    }
    
    /* Progress bars - iOS style */
    .progress-track {
        height: 4px;
        background: #E5E5EA;
        border-radius: 2px;
        overflow: hidden;
    }
    
    .progress-bar {
        height: 100%;
        background: #007AFF;
        border-radius: 2px;
        transition: width 0.3s ease;
    }
    
    /* Toggle switches - iOS style */
    .toggle {
        width: 51px;
        height: 31px;
        background: #E5E5EA;
        border-radius: 15.5px;
        position: relative;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    
    .toggle.active {
        background: #34C759;
    }
    
    .toggle::after {
        content: '';
        position: absolute;
        width: 27px;
        height: 27px;
        background: white;
        border-radius: 50%;
        top: 2px;
        left: 2px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
    }
    
    .toggle.active::after {
        transform: translateX(20px);
    }
    
    /* Hide pending elements */
    body.pending-profile .hide-pending {
        display: none !important;
    }
    
    /* Safe area for notched devices */
    .safe-area-top {
        padding-top: env(safe-area-inset-top, 0);
    }
    
    .safe-area-bottom {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    /* Filters Panel - Mobile: Each field on its own line, no labels */
    .filters-panel {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    
    .filters-panel .filter-group {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .filters-panel .filter-group label {
        display: none !important;
    }
    
    .filters-panel .filter-group select,
    .filters-panel .filter-group input {
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        min-height: 40px !important;
    }
    
    .filters-panel .range-inputs {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
    }
    
    .filters-panel .range-inputs input {
        flex: 1 !important;
        padding: 10px 12px !important;
        text-align: center !important;
        min-width: 0 !important;
    }
    
    .filters-panel .range-inputs span {
        display: none !important;
    }
    
    .filters-panel .btn-primary {
        width: 100% !important;
        padding: 10px 16px !important;
        border-radius: 10px !important;
        font-size: 0.95rem !important;
        margin-top: 4px !important;
        min-height: 40px !important;
    }
    
    /* Search Header Compact - Mobile */
    .search-header-compact {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 16px !important;
        margin-bottom: 8px !important;
        position: relative;
        z-index: 50;
        background: #F2F2F7 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
    }
    
    .search-header-compact h2 {
        font-size: 1.1rem !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .search-header-compact .btn-filter-toggle {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Search Results Area - Mobile */
    .search-results-area {
        padding: 0 16px !important;
    }
    
    /* Matches Grid - Mobile 2 columns */
    #searchSection .matches-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Match Card - Mobile Compact */
    #searchSection .match-card {
        padding: 12px !important;
    }
    
    #searchSection .match-card .match-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    #searchSection .match-card h4 {
        font-size: 0.9rem !important;
    }
    
    #searchSection .match-card .match-details-row {
        font-size: 0.75rem !important;
    }
    
    #searchSection .match-card .match-action-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Search Modal - Mobile */
    .search-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .search-modal-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .search-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        background: #F2F2F7;
        border-radius: 16px;
        z-index: 1001;
        display: none;
        opacity: 0;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .search-modal.active {
        display: block;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .search-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: #FFFFFF;
        border-bottom: 1px solid #E5E5EA;
    }
    
    .search-modal-header h2 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #000;
        margin: 0;
    }
    
    .search-modal-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: #F2F2F7;
        color: #8E8E93;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .search-modal-body {
        padding: 16px;
        max-height: calc(80vh - 60px);
        overflow-y: auto;
    }
    
    /* Filter Toggle Button */
    .btn-filter-toggle {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
        color: white;
        border: none;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        position: relative;
        z-index: 100;
        pointer-events: auto;
    }
    

    /* Search Modal Search Controls - Each field on its own line, No Labels */
    .search-modal .search-controls {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .search-modal .filter-compact {
        background: #FFFFFF;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        border: 1px solid #F0F0F0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-modal .filter-compact label {
        display: none;
    }
    
    .search-modal .filter-compact input,
    .search-modal .filter-compact select {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border: 2px solid #E8E8ED;
        border-radius: 10px;
        background: #FAFAFA;
        color: #1C1C1E;
        transition: all 0.2s ease;
        outline: none;
        height: 48px;
        box-sizing: border-box;
    }
    
    .search-modal .filter-compact input:focus,
    .search-modal .filter-compact select:focus {
        border-color: #007AFF;
        background: #FFFFFF;
        box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
    }
    
    .search-modal .range-mini {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }
    
    .search-modal .range-mini input {
        flex: 1;
        text-align: center;
        font-weight: 600;
        font-size: 1rem;
        height: 48px;
        min-width: 0;
    }
    
    .search-modal .range-mini span {
        display: none;
    }
    
    .search-modal .search-field input {
        width: 100%;
    }
    
    /* Search Button - Separate Line */
    .search-modal .search-button-wrapper {
        padding-top: 20px;
        border-top: 2px solid #E8E8ED;
        margin-top: 4px;
    }
    
    .search-modal .btn-search-apply {
        width: 100%;
        padding: 20px 28px;
        font-size: 1.1rem;
        font-weight: 700;
        background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
        color: white;
        border: none;
        border-radius: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 8px 28px rgba(0, 122, 255, 0.4);
        transition: all 0.2s ease;
        letter-spacing: 0.5px;
        height: 60px;
    }
    
    .search-modal .btn-search-apply:active {
        transform: translateY(2px);
        box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    }
    
    /* Search Modal Body - Better spacing with flex */
    .search-modal-body {
        padding: 24px;
        max-height: calc(90vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    /* Search Modal Header - Clean */
    .search-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        background: #FFFFFF;
        border-bottom: 1px solid #F0F0F0;
    }
    
    .search-modal-header h2 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #000;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .search-modal-header h2 i {
        color: #007AFF;
    }
    
    .search-modal-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #F2F2F7;
        color: #8E8E93;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.2rem;
        transition: all 0.2s ease;
    }
    
    .search-modal-close:active {
        background: #E5E5EA;
        color: #636366;
        transform: scale(0.95);
    }
    
    /* Search Modal - Better sizing */
    .search-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90%;
        max-width: 400px;
        max-height: 90vh;
        background: #F8F8FA;
        border-radius: 24px;
        z-index: 1001;
        display: none;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    }
    
    /* User Dropdown - Mobile */
    .header-actions {
        position: relative;
    }
    
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .dropdown-header {
        padding: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    }
    
    .dropdown-header img {
        width: 50px;
        height: 50px;
    }
    
    .dropdown-name {
        font-size: 1.1rem;
    }
    
    .dropdown-email {
        font-size: 0.85rem;
    }
    
    .dropdown-item {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .dropdown-item i {
        font-size: 1.1rem;
    }
    
    .user-menu {
        padding: 8px 12px 8px 8px;
    }
    
    .user-menu img {
        width: 32px;
        height: 32px;
    }
    
    .user-menu span {
        display: none;
    }
    
    .user-menu i {
        font-size: 0.7rem;
    }
}
