/* CSS Variables for Hero Section Sizing */
:root {
    --hero-padding: 3rem;
    --hero-min-height: 40vh;
    --hero-title-size: 2.5rem;
    --hero-subtitle-size: 1.1rem;
    --hero-stats-gap: 1.5rem;
    --hero-stat-number-size: 2rem;
    --hero-stat-label-size: 0.85rem;
    --hero-cta-padding: 1rem 2rem;
    --hero-cta-font-size: 1rem;
}

/* Compact Hero Section Variant */
.hero-section.compact {
    --hero-padding: 2rem;
    --hero-min-height: 30vh;
    --hero-title-size: 2rem;
    --hero-subtitle-size: 1rem;
    --hero-stats-gap: 1.2rem;
    --hero-stat-number-size: 1.75rem;
    --hero-stat-label-size: 0.8rem;
    --hero-cta-padding: 0.8rem 1.8rem;
    --hero-cta-font-size: 0.95rem;
}

.hero-section.mini {
    --hero-padding: 1.5rem;
    --hero-min-height: 25vh;
    --hero-title-size: 1.75rem;
    --hero-subtitle-size: 0.9rem;
    --hero-stats-gap: 1rem;
    --hero-stat-number-size: 1.5rem;
    --hero-stat-label-size: 0.75rem;
    --hero-cta-padding: 0.7rem 1.5rem;
    --hero-cta-font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    color: white;
    text-align: center;
    padding: var(--hero-padding) 0;
    position: relative;
    overflow: hidden;
    min-height: var(--hero-min-height);
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="islamic-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0L30 10L20 20L10 10Z" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23islamic-pattern)"/></svg>');
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: var(--hero-title-size);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: var(--hero-subtitle-size);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--hero-stats-gap);
    margin-bottom: 1.5rem;
}

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

.hero-stat-number {
    display: block;
    font-size: var(--hero-stat-number-size);
    font-weight: 700;
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--hero-stat-label-size);
    opacity: 0.8;
    margin-top: 0.25rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: #22c55e;
    padding: var(--hero-cta-padding);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--hero-cta-font-size);
    transition: all var(--transition-normal);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left var(--transition-slow);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    color: #16a34a;
    border-color: rgba(255, 255, 255, 0.4);
}



/* Main Content Layout */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    height: fit-content;
    position: sticky;
    top: 90px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filters-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-islamic);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.filters-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reset-filters {
    background: none;
    border: 2px solid transparent;
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
    outline: none;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-filters:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.reset-filters:active {
    transform: translateY(-1px);
    background: rgba(34, 197, 94, 0.2);
}

.reset-filters:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.reset-filters:active {
    transform: translateY(0);
    background: rgba(34, 197, 94, 0.2);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
    position: relative;
    overflow: visible;
    z-index: 1;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.filter-section:hover {
    border-color: rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.filter-section:hover::before {
    opacity: 1;
}

.filter-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    pointer-events: none;
    user-select: none;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    background: var(--bg-primary);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    z-index: 1;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
    z-index: 10;
}

.filter-select:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    transform: translateY(-1px);
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
    transition: all 0.2s ease;
}

.radio-label:hover {
    color: #22c55e;
    transform: translateY(-1px);
}

.radio-label:hover input[type="radio"] {
    transform: scale(1.1);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.range-inputs input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    outline: none;
    cursor: text;
    text-align: center;
    min-width: 60px;
}

.range-inputs input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    transform: translateY(-1px);
}

.range-inputs input:hover {
    border-color: #16a34a;
    box-shadow: var(--shadow-sm);
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    cursor: text;
    position: relative;
    z-index: 1;
}

.filter-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
    z-index: 10;
}

.filter-input:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

/* Age Slider Styles */
.age-slider-container {
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.age-slider {
    position: relative;
    height: 6px;
    margin: 1rem 0;
}

.age-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    top: 0;
}

.age-range {
    position: absolute;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    pointer-events: all;
    top: 0;
}

.age-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.age-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: none;
}

.age-range:active::-webkit-slider-thumb {
    box-shadow: var(--shadow-lg);
    transform: scale(1.1);
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.results-count {
    font-weight: 600;
    color: var(--text-primary);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Profiles Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-items: center;
    padding: 0 1rem;
}

.profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(20px);
    max-width: 280px;
    margin: 0 auto;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.02) 0%,
        rgba(59, 130, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-card:hover .profile-avatar {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.profile-card:hover .online-badge {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

.profile-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.profile-card.fade-in {
    animation: cardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-image {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        #8b5cf6 0%,
        #3b82f6 50%,
        #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(139, 92, 246, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid white;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%);
    opacity: 0.8;
}

.profile-photo {
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    position: relative;
}

.online-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-online 2.5s infinite;
    z-index: 10;
}

@keyframes pulse-online {
    0% {
        box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4), 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    70% {
        box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4), 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4), 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.profile-info {
    padding: 1rem 1.5rem 0;
    text-align: center;
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.profile-age-inline {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0.75rem 0;
    font-size: 0.8rem;
    color: #6b7280;
    align-items: center;
}

.profile-details span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    justify-content: center;
}

.country-flag {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    object-fit: cover;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.tag {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tag:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.profile-bio {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    padding: 0 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    justify-content: center;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(139, 92, 246, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.btn-secondary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* No Profiles Message */
.no-profiles-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.no-profiles-message i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-profiles-message h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-profiles-message p {
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination a:hover {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.pagination .active {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

/* Icons */
.icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill var(--transition-fast);
}

.icon-svg.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-svg.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-svg.icon-xl {
    width: 32px;
    height: 32px;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1001;
    transition: all var(--transition-normal);
    outline: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    font-size: 1.25rem;
    font-weight: bold;
}

.mobile-filter-btn:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(34, 197, 94, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.mobile-filter-btn:active {
    transform: scale(1.05);
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.mobile-filter-btn:focus {
    outline: none;
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(34, 197, 94, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filters-sidebar {
        order: 2;
        position: static;
    }

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

@media (max-width: 768px) {
    :root {
        --hero-padding: 2rem;
        --hero-min-height: 30vh;
        --hero-title-size: 1.75rem;
        --hero-subtitle-size: 0.9rem;
        --hero-stats-gap: 1rem;
        --hero-stat-number-size: 1.5rem;
        --hero-stat-label-size: 0.75rem;
        --hero-cta-padding: 0.75rem 1.5rem;
        --hero-cta-font-size: 0.9rem;
    }
    
    .hero-section {
        padding: var(--hero-padding) 0;
        min-height: var(--hero-min-height);
    }
    
    .hero-title {
        font-size: var(--hero-title-size);
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: var(--hero-subtitle-size);
        margin-bottom: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: var(--hero-stats-gap);
        margin-bottom: 1rem;
    }

    .hero-stat-number {
        font-size: var(--hero-stat-number-size);
    }
    
    .hero-stat-label {
        font-size: var(--hero-stat-label-size);
        margin-top: 0.2rem;
    }
    
    .hero-cta {
        padding: var(--hero-cta-padding);
        font-size: var(--hero-cta-font-size);
    }

    .main-layout {
        padding: 1rem;
    }

    .profile-card {
        margin: 0;
        max-width: none;
    }

    .profiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
    }

    .mobile-filter-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        animation: pulse 2s infinite;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        user-select: none !important;
    }

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

    .filters-sidebar {
        display: none;
    }

    .filters-sidebar.mobile-open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        background: var(--bg-primary);
        border-radius: 0;
        overflow-y: auto;
        padding: 2rem 1rem;
        box-shadow: var(--shadow-xl);
        border: none;
        animation: slideInMobileFilters 0.3s ease forwards;
    }
    
    @keyframes slideInMobileFilters {
        from {
            opacity: 0;
            transform: translateX(100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .filters-sidebar.mobile-open .filters-header {
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        padding: 1rem 0;
        margin: -2rem -1rem 1rem -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-bottom: 2px solid var(--border-color);
    }

    .filters-sidebar.mobile-open .filters-header {
        position: relative;
    }
    
    .filters-sidebar.mobile-open .filters-header::after {
        content: '✕';
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-secondary);
        background: var(--bg-secondary);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-normal);
        z-index: 10;
        pointer-events: all;
    }
    
    .filters-sidebar.mobile-open .filters-header::after:hover {
        background: var(--danger-color);
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .sort-options {
        justify-content: center;
    }

    .radio-group {
        flex-wrap: wrap;
    }

    .age-slider-container {
        padding: 0;
    }

    .range-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .range-inputs input {
        flex: none;
    }
}

@media (max-width: 480px) {
    :root {
        --hero-padding: 1.5rem;
        --hero-min-height: 25vh;
        --hero-title-size: 1.5rem;
        --hero-subtitle-size: 0.8rem;
        --hero-stats-gap: 0.8rem;
        --hero-stat-number-size: 1.25rem;
        --hero-stat-label-size: 0.7rem;
        --hero-cta-padding: 0.6rem 1.2rem;
        --hero-cta-font-size: 0.85rem;
    }
    
    .hero-section {
        padding: var(--hero-padding) 0;
        min-height: var(--hero-min-height);
    }
    
    .hero-title {
        font-size: var(--hero-title-size);
        margin-bottom: 0.4rem;
    }
    
    .hero-subtitle {
        font-size: var(--hero-subtitle-size);
        margin-bottom: 0.8rem;
    }
    
    .hero-stats {
        gap: var(--hero-stats-gap);
        margin-bottom: 0.8rem;
    }
    
    .hero-stat-number {
        font-size: var(--hero-stat-number-size);
    }
    
    .hero-stat-label {
        font-size: var(--hero-stat-label-size);
    }
    
    .hero-cta {
        padding: var(--hero-cta-padding);
        font-size: var(--hero-cta-font-size);
    }

    .profile-card {
        margin: 0 0.5rem;
        max-width: none;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

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

    .profile-photo {
        font-size: 2rem;
    }

    .profile-name {
        font-size: 1rem;
    }

    .profile-details {
        font-size: 0.75rem;
    }

    .tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .profile-bio {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }

    .profile-actions {
        flex-direction: row;
        gap: 0.375rem;
    }

    .btn-primary {
        font-size: 0.75rem;
        padding: 0.625rem 1rem;
    }
}

/* Responsive Hero Size Controls */
@media (max-width: 768px) {
    .hero-size-controls {
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-size-btn {
        padding: 0.4rem;
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-size-controls {
        gap: 0.2rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-size-btn {
        padding: 0.3rem;
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* Modern Inline Stats for Content Header */
.results-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stats-item-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.08) 0%,
        rgba(16, 185, 129, 0.12) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(34, 197, 94, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stats-item-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: left 0.6s ease;
}

.stats-item-inline:hover {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.15) 0%,
        rgba(16, 185, 129, 0.2) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(34, 197, 94, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.stats-item-inline:hover::before {
    left: 100%;
}

.stats-item-inline:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.stats-icon-small {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.3));
    transition: all 0.3s ease;
}

.stats-item-inline:hover .stats-icon-small {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.4));
}

.stats-content-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.stats-number-small {
    font-size: 1.375rem;
    font-weight: 800;
    background: linear-gradient(135deg,
        var(--primary-color) 0%,
        #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
}

.stats-item-inline:hover .stats-number-small {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.stats-label-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stats-item-inline:hover .stats-label-small {
    opacity: 1;
    color: var(--primary-color);
}

/* Modern Responsive Inline Stats */
@media (max-width: 768px) {
    .results-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
        padding: 0.375rem;
        border-radius: 16px;
    }

    .stats-item-inline {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        border-radius: 12px;
        min-width: 120px;
    }

    .stats-icon-small {
        font-size: 1.25rem;
    }

    .stats-number-small {
        font-size: 1.125rem;
    }

    .stats-label-small {
        font-size: 0.6875rem;
        letter-spacing: 0.25px;
    }
}

@media (max-width: 480px) {
    .content-header {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .results-stats {
        justify-content: center;
        gap: 0.5rem;
        padding: 0.25rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
    }

    .stats-item-inline {
        flex: 1;
        justify-content: center;
        min-width: 0;
        padding: 0.875rem 0.75rem;
        border-radius: 10px;
        gap: 0.5rem;
    }

    .stats-content-inline {
        align-items: center;
        text-align: center;
        gap: 0.125rem;
    }

    .stats-icon-small {
        font-size: 1.125rem;
    }

    .stats-number-small {
        font-size: 1rem;
    }

    .stats-label-small {
        font-size: 0.625rem;
        letter-spacing: 0.25px;
    }

    .stats-item-inline:hover {
        transform: translateY(-2px) scale(1.01);
    }
}