/* BaleJO - Modern Redesign */

:root {
    /* New Orange & Green Color Palette */
    /* Primary Attention Colors */
    --primary-orange: #fe6b40; /* Vibrant Orange - Primary buttons, main headings, important highlights */
    --secondary-orange: #ff8829; /* Warm Orange - Secondary buttons, highlights */
    
    /* Secondary Colors */
    --accent-peach: #ffb366; /* Light Orange/Peach - Soft accent, subtle backgrounds, hover states */
    --primary-green: #a5c90f; /* Bright Green - Secondary buttons, success states */
    --secondary-green: #6f9c3d; /* Deep Green - Positive states, confirmations, active elements */
    
    /* Legacy variable mappings for backward compatibility */
    --primary-color: var(--primary-orange); /* Primary Orange - for primary buttons, highlights, important actions */
    --primary-hover: var(--accent-peach); /* Light orange/peach on hover */
    --primary-light: var(--accent-peach); /* Light orange variant */
    --primary-dark: var(--secondary-orange); /* Warm orange for active states */
    
    --secondary-color: var(--primary-green); /* Secondary Green - for secondary buttons, success messages, active elements */
    --secondary-hover: var(--secondary-green); /* Deep green on hover */
    --secondary-light: var(--primary-green); /* Bright green variant */
    --secondary-dark: var(--secondary-green); /* Deep green for active states */
    
    /* Gradient Colors */
    --gradient-hero: linear-gradient(to right, #fe6b40, #ffb366); /* Hero section gradient */
    --gradient-cta: linear-gradient(to right, #a5c90f, #6f9c3d); /* Call-to-action sections gradient */
    --gradient-primary: var(--gradient-hero); /* Primary gradient (hero style) */
    --gradient-primary-reverse: linear-gradient(to right, #ffb366, #fe6b40); /* Reversed hero gradient */
    --gradient-primary-hover: linear-gradient(to right, #ff8829, #ffb366); /* Hover gradient */
    
    --accent-color: var(--primary-orange); /* Accent - Same as primary for consistency */
    
    /* Status Colors - Modern and Friendly */
    --danger-color: #E63946; /* Soft red for errors */
    --success-color: var(--secondary-green); /* Deep green for success */
    --warning-color: var(--secondary-orange); /* Warm orange warning */
    --info-color: #3A86FF; /* Friendly blue */
    
    /* Neutral Colors */
    --dark-color: #333333; /* Dark gray for main text */
    --dark-secondary: #555555;
    --light-color: #E6E6E6;
    --text-color: #333333; /* Dark gray main text */
    --text-color-light: #FFFFFF; /* Light text color */
    --text-primary: var(--primary-orange); /* Primary text color - Vibrant Orange */
    --text-secondary-color: var(--secondary-green); /* Secondary text color - Deep Green */
    --text-secondary: #777777; /* Light gray secondary text */
    --text-muted: #999999;
    --border-color: rgba(254, 107, 64, 0.3); /* Semi-transparent vibrant orange borders */
    --bg-color: #FFFFFF; /* White */
    --bg-secondary: #F9F9F9; /* Light background */
    --bg-tertiary: #F0F0F0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem; /* 8px */
    --radius: 0.75rem; /* 12px */
    --radius-md: 1rem; /* 16px */
    --radius-lg: 1rem; /* 16px */
    --radius-xl: 1.5rem; /* 24px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7; /* Increased for better readability */
    color: var(--text-color);
    background: var(--bg-secondary);
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Mobile: Remove all body padding/margins */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Mobile: Reduce container padding - No white spaces */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
        max-width: 100%;
    }
}

/* Header - Modern Design with Enhanced Styling */
.header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(254, 107, 64, 0.3), transparent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-md);
    position: relative;
}

/* Modern header layout improvements */
.header-top .logo {
    flex: 0 0 auto;
    z-index: 10;
    order: 1;
}

.header-top .header-icons {
    flex: 0 0 auto;
    margin-left: auto;
    order: 3;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Language switcher removed from header - now in menu popup */

/* Better alignment for header elements */
@media (min-width: 769px) {
    .header-top {
        flex-wrap: nowrap;
    }
    
    .header-top .logo {
        flex-shrink: 0;
    }
    
    .header-top .header-icons {
        flex-shrink: 0;
    }
}

.header-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.header-icon-btn {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
    text-decoration: none;
}

.header-icon-btn:hover {
    background: rgba(254, 107, 64, 0.12);
    color: var(--primary-color);
    border-color: rgba(254, 107, 64, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(254, 107, 64, 0.15);
}

.header-icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(254, 107, 64, 0.1);
}

.header-icon-btn svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 2;
}

.header-icon-btn:hover svg {
    transform: scale(1.08);
}

.add-listing-btn-header {
    background: var(--gradient-primary); /* Orange to Green gradient */
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.25), 0 2px 4px rgba(111, 156, 61, 0.15);
    position: relative;
    overflow: hidden;
}

.add-listing-btn-header::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;
}

.add-listing-btn-header:hover::before {
    left: 100%;
}

.add-listing-btn-header:hover {
    background: var(--gradient-primary-hover); /* Darker gradient on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(254, 107, 64, 0.35), 0 4px 8px rgba(111, 156, 61, 0.25);
}

.add-listing-btn-header:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(254, 107, 64, 0.25);
}

.add-listing-btn-header svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.add-listing-btn-header:hover svg {
    transform: rotate(90deg) scale(1.1);
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-color);
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    margin-bottom: var(--spacing-sm);
    width: fit-content;
    min-height: 32px;
}

.location-selector:hover {
    background: var(--bg-secondary);
}

.location-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.search-section {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    position: relative;
}

.search-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

/* Mobile: Compact search section */
@media (max-width: 768px) {
    .search-section {
        margin-bottom: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
    }
}

.search-section .search-form {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
    position: relative;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 54px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.search-input-wrapper:hover {
    border-color: rgba(254, 107, 64, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(254, 107, 64, 0.12), 0 4px 12px rgba(254, 107, 64, 0.15);
    background: var(--bg-color);
}

.search-input-wrapper svg {
    margin-left: var(--spacing-md);
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within svg {
    color: var(--primary-color);
}

.search-input-wrapper .search-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-color);
}

.search-input-wrapper .search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-input-wrapper .search-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 4px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.search-input-wrapper .search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(254, 107, 64, 0.3);
}

.search-input-wrapper .search-btn:active {
    transform: scale(0.98);
}

/* Hide hamburger menu button from header - use floating button instead */
.search-section .menu-toggle-btn,
.search-section .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
}

.menu-toggle-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.menu-toggle-btn:hover {
    background: rgba(254, 107, 64, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(254, 107, 64, 0.15);
}

.menu-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.menu-toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.3);
}

.menu-toggle-btn svg {
    transition: transform 0.3s ease;
}

.menu-toggle-btn:hover svg {
    transform: scale(1.1);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    height: 42px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    max-width: 180px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 1.85rem;
    font-weight: 800;
    background: var(--gradient-primary); /* Orange to Green gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: none; /* Hide text when logo image is present */
    transition: all 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo a:hover .logo-image {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(254, 107, 64, 0.2));
}

.logo a:hover .logo-text {
    transform: scale(1.05);
}

/* Fallback: if logo image doesn't load, show text */
.logo-image[style*="display: none"] + .logo-text,
.logo:not(:has(.logo-image)) .logo-text {
    display: inline-block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Mobile nav styles are defined later in the mobile section */

/* Show desktop nav on larger screens - Always visible on desktop */
@media (min-width: 769px) {
    .nav {
        display: block !important;
        position: static;
        background: transparent;
        padding: 0;
        max-height: none;
        opacity: 1;
        transform: none;
        width: auto;
        max-width: none;
        box-shadow: none;
    }
    
    /* Desktop nav should always be visible on desktop screens */
    body.menu-popup-enabled .nav {
        display: block !important;
    }
    
    .nav-list {
        flex-direction: row;
        gap: var(--spacing-xs);
        padding: 0;
    }
    
    .nav-list li {
        border-bottom: none;
    }
    
    .nav-list a {
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-md);
        min-height: 44px;
        font-size: 0.95rem;
    }
    
    .nav-list a::before {
        display: none;
    }
    
    .nav-list a:hover,
    .nav-list a.active {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    body[dir="rtl"] .nav-list a:hover,
    body[dir="rtl"] .nav-list a.active {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    touch-action: manipulation;
    white-space: nowrap;
}

.nav-list a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: var(--gradient-primary); /* Orange to Green gradient */
    border-radius: var(--radius-full);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(254, 107, 64, 0.3);
}

.nav-list a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-list a:hover::before {
    opacity: 0.12;
    transform: scale(1);
}

.nav-list a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-list a.active {
    color: var(--secondary-color); /* Green for active */
    background: rgba(111, 156, 61, 0.12); /* Light green background */
    font-weight: 700;
}

.nav-list a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-list a.active::before {
    opacity: 0.15;
    transform: scale(1);
}

.nav-list a:active {
    transform: translateY(0);
}

.nav-icon-link {
    position: relative;
    display: inline-block;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #d62839 100%);
    color: white;
    border-radius: var(--radius-full);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    min-width: 20px;
    border: 2px solid var(--bg-color);
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.4);
    animation: pulse 2s infinite;
}

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

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on orange */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md); /* More rounded */
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #FFFFFF; /* White text */
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modern Language Toggle Button - Similar to Sell Button but Distinct */
.modern-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.15), 0 2px 4px rgba(254, 107, 64, 0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.modern-lang-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 107, 64, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.modern-lang-toggle:hover::before {
    left: 100%;
}

.modern-lang-toggle:hover {
    background: var(--gradient-primary); /* Orange to Green gradient */
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(254, 107, 64, 0.3), 0 4px 8px rgba(254, 107, 64, 0.2);
}

.modern-lang-toggle:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(254, 107, 64, 0.25);
}

.modern-lang-toggle .lang-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: rgba(254, 107, 64, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.modern-lang-toggle:hover .lang-icon-circle {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(360deg) scale(1.1);
}

.modern-lang-toggle .lang-globe-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    stroke: currentColor;
}

.modern-lang-toggle:hover .lang-globe-icon {
    transform: scale(1.15);
    stroke: white;
}

.modern-lang-toggle .lang-text {
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.modern-lang-toggle.switching {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.modern-lang-toggle.switching .lang-icon-circle {
    animation: langTogglePulse 0.8s ease infinite;
}

.modern-lang-toggle.switching::before {
    animation: shimmerPulse 1s ease infinite;
}

@keyframes langTogglePulse {
    0%, 100% {
        transform: scale(1);
        background: rgba(254, 107, 64, 0.1);
    }
    50% {
        transform: scale(1.15);
        background: rgba(254, 107, 64, 0.2);
    }
}

@keyframes shimmerPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Hide dropdown menu for toggle buttons */
.lang-toggle-btn + .lang-menu,
.lang-toggle-btn ~ .lang-menu {
    display: none !important;
}

/* Navigation menu language switcher - Desktop styling */
.nav-list .language-switcher .lang-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
}

.nav-list .language-switcher .lang-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: transparent;
}

.lang-arrow {
    font-size: 0.75rem;
    transition: var(--transition);
}

.lang-dropdown.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); /* More rounded */
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

body[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modern Language Menu */
.modern-lang-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modern-lang-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary); /* Orange to Green gradient */
}

body[dir="rtl"] .modern-lang-menu {
    right: auto;
    left: 0;
}

.lang-dropdown.active .modern-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--secondary-color); /* Light orange/peach hover */
    color: var(--primary-color);
}

.lang-option.active {
    background: rgba(111, 156, 61, 0.15); /* Light green for active */
    color: var(--secondary-color); /* Green text */
    font-weight: 600;
}

.lang-option .check {
    color: var(--success-color);
    font-weight: bold;
}

/* Modern Language Option */
.modern-lang-menu .lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 52px;
}

.modern-lang-menu .lang-option:last-child {
    border-bottom: none;
}

.modern-lang-menu .lang-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.modern-lang-menu .lang-option:hover::before,
.modern-lang-menu .lang-option.active::before {
    transform: scaleY(1);
}

.modern-lang-menu .lang-option:hover {
    background: rgba(254, 107, 64, 0.08);
    color: var(--primary-color);
    padding-left: calc(var(--spacing-lg) + 3px);
}

.modern-lang-menu .lang-option.active {
    background: rgba(111, 156, 61, 0.15); /* Light green for active */
    color: var(--secondary-color); /* Green text */
    font-weight: 700;
    padding-left: calc(var(--spacing-lg) + 3px);
}

.modern-lang-menu .lang-option-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.modern-lang-menu .lang-option.active .lang-option-text {
    font-weight: 700;
}

.modern-lang-menu .lang-check-icon {
    width: 18px;
    height: 18px;
    color: var(--secondary-color); /* Green checkmark */
    flex-shrink: 0;
    animation: checkmarkAppear 0.3s ease;
}

@keyframes checkmarkAppear {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header Language Switcher - Always Visible */
.header-lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1001;
}

.header-lang-btn {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    min-width: auto;
    min-height: 36px;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.header-lang-btn:active {
    transform: scale(0.98);
    background: var(--primary-color);
    color: #FFFFFF;
}

.header-lang-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.header-lang-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.header-lang-btn .lang-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-lang-btn .lang-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.header-lang-btn .lang-current {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    color: inherit;
}

.header-lang-btn .lang-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
    margin-left: 0.2rem;
    color: inherit;
}

.header-lang-switcher.active .lang-arrow,
.lang-dropdown.active.header-lang-switcher .lang-arrow {
    transform: rotate(180deg);
}

.header-lang-switcher .lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

body[dir="rtl"] .header-lang-switcher .lang-menu {
    right: auto;
    left: 0;
}

.header-lang-switcher.active .lang-menu,
.lang-dropdown.active.header-lang-switcher .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile adjustments for header language switcher */
@media (max-width: 768px) {
    .header-lang-btn {
        padding: var(--spacing-xs);
        min-width: 44px;
        min-height: 44px;
    }
    
    .header-lang-btn .lang-current {
        display: none; /* Hide text on very small screens, show icon only */
    }
    
    .header-lang-btn .lang-icon {
        margin: 0;
    }
    
    .header-lang-switcher {
        order: -1; /* Show language switcher first on mobile */
    }
}

.lang-option.active .check {
    color: white;
}

/* RTL Support */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

body[dir="rtl"] .nav-list {
    flex-direction: row-reverse;
}

body[dir="rtl"] .nav-badge {
    right: auto;
    left: -8px;
}

body[dir="rtl"] .nav-list a::after {
    left: auto;
    right: 50%;
    transform: translateX(50%) scaleX(0);
}

body[dir="rtl"] .nav-list a:hover::after {
    transform: translateX(50%) scaleX(1);
}

body[dir="rtl"] .container {
    text-align: right;
}

body[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

body[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

body[dir="rtl"] .product-card {
    text-align: right;
}

body[dir="rtl"] .search-input-wrapper {
    flex-direction: row-reverse;
}

body[dir="rtl"] .autocomplete-results {
    text-align: right;
}

body[dir="rtl"] .flash-message {
    border-left: none;
    border-right: 4px solid;
}

body[dir="rtl"] .flash-success {
    border-right-color: var(--success-color);
}

body[dir="rtl"] .flash-error {
    border-right-color: var(--danger-color);
}

.mobile-menu-toggle,
.menu-toggle-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius);
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10001;
}

.mobile-menu-toggle:hover,
.menu-toggle-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.mobile-menu-toggle:active,
.menu-toggle-btn:active {
    transform: scale(0.95);
    background: rgba(254, 107, 64, 0.1);
}

.mobile-menu-toggle svg,
.menu-toggle-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
    transition: var(--transition);
}

.mobile-menu-toggle:hover svg,
.menu-toggle-btn:hover svg {
    stroke: var(--primary-color);
    transform: scale(1.1);
}

.mobile-menu-toggle.active,
.menu-toggle-btn.active {
    background: rgba(254, 107, 64, 0.1);
}

.mobile-menu-toggle.active svg,
.menu-toggle-btn.active svg {
    stroke: var(--primary-color);
    transform: rotate(90deg);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

/* Flash Messages - Modern Toast Style */
.flash-message {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-success {
    background: rgba(111, 156, 61, 0.1); /* Light green background */
    color: var(--success-color); /* Green text */
    border-left: 4px solid var(--success-color);
    box-shadow: 0 2px 8px rgba(111, 156, 61, 0.2);
}

.flash-error {
    background: var(--bg-color);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Buttons - Modern Rounded Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 24px; /* Exact padding as specified */
    border: none;
    border-radius: 12px; /* Exact border-radius as specified */
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600; /* Exact font-weight as specified */
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 44px;
    min-width: 44px;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-orange); /* Vibrant orange background */
    color: var(--text-color-light); /* White text */
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.25);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-peach); /* Light orange/peach on hover (#fe6b40 → #ffb366) */
    box-shadow: 0 6px 20px rgba(255, 179, 102, 0.4), 0 4px 12px rgba(254, 107, 64, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(254, 107, 64, 0.25);
}

.btn-secondary {
    background: var(--primary-green); /* Bright green background */
    color: var(--text-color-light); /* White text */
    border: none;
    box-shadow: 0 4px 12px rgba(165, 201, 15, 0.25);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    background: var(--gradient-cta); /* CTA gradient: bright green to deep green */
    box-shadow: 0 6px 20px rgba(111, 156, 61, 0.4), 0 4px 12px rgba(165, 201, 15, 0.3);
    transform: translateY(-2px);
}

/* CTA Button - Uses CTA gradient */
.btn-cta {
    background: var(--gradient-cta); /* CTA gradient: bright green to deep green */
    color: var(--text-color-light);
    border: none;
    box-shadow: 0 4px 12px rgba(111, 156, 61, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 156, 61, 0.4), 0 4px 12px rgba(165, 201, 15, 0.3);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(111, 156, 61, 0.25);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(111, 156, 61, 0.25);
}

.btn-success {
    background: var(--success-color); /* Green */
    color: white;
    box-shadow: 0 4px 12px rgba(111, 156, 61, 0.25);
}

.btn-success:hover {
    background: var(--secondary-hover); /* Darker green */
    box-shadow: 0 6px 16px rgba(111, 156, 61, 0.35);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Hero Section - BUY/SELL Split Banner */
/* Advertisement Banner Section */
.banner-section {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.banner-item {
    position: relative;
    width: 100%;
    height: 20vh;
    min-height: 150px;
    max-height: 300px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    color: white;
    z-index: 1;
}

.banner-title {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.banner-description {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.banner-cta {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-carousel .banner-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-carousel .banner-item.active {
    display: block;
    opacity: 1;
}

.banner-carousel-prev,
.banner-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--text-primary);
}

.banner-carousel-prev:hover,
.banner-carousel-next:hover {
    background: rgba(255, 255, 255, 1);
}

.banner-carousel-prev {
    left: var(--spacing-md);
}

.banner-carousel-next {
    right: var(--spacing-md);
}

.banner-carousel-dots {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.banner-dot.active {
    background: white;
}

/* Hero Section (Old - kept for backward compatibility) */
.hero-section {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-buy-sell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 200px;
}

.hero-buy {
    background: var(--gradient-cta); /* CTA gradient: bright green to deep green */
    color: white;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-sell {
    background: var(--gradient-hero); /* Hero gradient: vibrant orange to light orange/peach */
    color: white;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-buy h2,
.hero-sell h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.hero-buy p,
.hero-sell p {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
    margin-top: var(--spacing-xs);
}

/* Old hero section styles for backward compatibility */
.hero-section-old {
    background: var(--gradient-hero); /* Hero gradient: vibrant orange to light orange/peach */
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Hero section with hero gradient */
.hero-section.hero-gradient,
.hero-section {
    background: var(--gradient-hero);
}

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

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Product/Service Card Gradient Styles */
.product-card.with-gradient,
.service-card.with-gradient {
    background: linear-gradient(135deg, rgba(254, 107, 64, 0.05) 0%, rgba(255, 179, 102, 0.05) 100%);
    border: 1px solid rgba(254, 107, 64, 0.15);
}

.product-card.with-gradient:hover,
.service-card.with-gradient:hover {
    background: linear-gradient(135deg, rgba(254, 107, 64, 0.1) 0%, rgba(255, 179, 102, 0.1) 100%);
    border-color: rgba(254, 107, 64, 0.3);
}

/* CTA Section Gradient */
.cta-section {
    background: var(--gradient-cta);
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-section h2,
.cta-section h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Categories Section */
.categories-section {
    margin-bottom: var(--spacing-xl);
}

.categories-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.categories-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

/* Mobile: Compact categories grid */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
        margin: 0;
    }
}

.category-card {
    background: var(--bg-color); /* White background */
    padding: var(--spacing-md);
    border-radius: 16px; /* Exact border-radius as specified */
    box-shadow: var(--shadow); /* Soft shadow for depth */
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color); /* Semi-transparent orange border */
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile: Compact category cards */
@media (max-width: 768px) {
    .category-card {
        padding: var(--spacing-xs) var(--spacing-sm);
        min-height: 85px;
    }
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.category-card h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.category-card p {
    display: none; /* Hide description on mobile-first design */
}

.category-new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color); /* Orange accent */
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px); /* Exact translateY as specified */
    box-shadow: var(--shadow-lg); /* Stronger shadow on hover */
    border-color: var(--primary-color);
}

.category-card:hover h3 {
    color: var(--primary-color);
}

/* Subcategories Section */
.subcategories-section {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.subcategories-title {
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.subcategory-card {
    background: var(--bg-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xs);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.subcategory-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    text-decoration: none;
}

.subcategory-icon {
    font-size: 1.5rem;
    display: block;
}

.subcategory-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.subcategory-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

/* Mobile: Compact subcategories grid */
@media (max-width: 768px) {
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .subcategory-card {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .subcategories-title {
        font-size: 1rem;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.product-card {
    background: var(--bg-color); /* White background */
    border-radius: 16px; /* Exact border-radius as specified */
    overflow: hidden;
    box-shadow: var(--shadow); /* Soft shadow for depth */
    transition: var(--transition);
    border: none; /* No hard borders */
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
    transform: translateY(-5px); /* Exact translateY as specified */
    box-shadow: var(--shadow-lg); /* Stronger shadow on hover */
    border-color: transparent; /* No border */
}

@media (hover: none) and (pointer: coarse) {
    .product-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-md);
    }
}

.product-card a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 240px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
}

.no-image.large {
    height: 400px;
}

.no-image-small {
    display: inline-block;
    padding: var(--spacing-xs);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius);
}

.product-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color); /* Orange price */
    margin-bottom: var(--spacing-xs);
}

.product-meta {
    display: flex;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
}

.product-meta span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.seller {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: var(--spacing-xs);
    border-top: 1px solid var(--border-color);
}

/* General Card Class */
.card {
    background: var(--bg-color); /* White background */
    border-radius: 16px; /* Exact border-radius as specified */
    padding: var(--spacing-md);
    box-shadow: var(--shadow); /* Soft shadow for depth */
    transition: var(--transition);
    border: 1px solid var(--border-color); /* Semi-transparent orange border */
}

.card:hover {
    transform: translateY(-5px); /* Exact translateY as specified */
    box-shadow: var(--shadow-lg); /* Stronger shadow on hover */
}

/* Product Detail */
.product-detail {
    background: var(--bg-color); /* White background */
    border-radius: 16px; /* Rounded corners */
    padding: var(--spacing-xl);
    box-shadow: var(--shadow); /* Soft shadow for depth */
    border: none; /* No hard borders */
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.product-image-section {
    position: relative;
}

.product-image-section img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-image-section:hover img {
    transform: scale(1.02);
}

.product-info-section h1 {
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.product-price-large {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.product-meta-detail {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary); /* Soft gray background */
    border-radius: 10px; /* Rounded corners */
}

.product-meta-detail p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

.product-description {
    margin-bottom: var(--spacing-lg);
}

.product-description h2 {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-size: 1.5rem;
}

.seller-info {
    background: var(--bg-secondary); /* Soft gray background */
    padding: var(--spacing-lg);
    border-radius: 12px; /* Rounded corners */
    margin-bottom: var(--spacing-lg);
    border: none; /* No hard borders */
    box-shadow: var(--shadow); /* Soft shadow */
}

.seller-info h2 {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Forms - Modern Design */
.auth-container {
    max-width: 500px;
    margin: var(--spacing-xl) auto;
    background: var(--bg-color); /* White background */
    padding: var(--spacing-xl);
    border-radius: 16px; /* Rounded corners */
    box-shadow: var(--shadow-xl); /* Soft shadow */
    border: none; /* No hard borders */
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.auth-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.auth-logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
    display: block;
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: none;
}

.auth-logo a:hover .auth-logo-image {
    transform: scale(1.05);
}

/* Fallback: if logo image doesn't load, show text */
.auth-logo-image[style*="display: none"] + .auth-logo-text,
.auth-logo:not(:has(.auth-logo-image)) .auth-logo-text {
    display: inline-block;
}

.auth-container h1 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-form {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color); /* Semi-transparent orange border */
    border-radius: 12px; /* Rounded inputs (8-16px range) */
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color); /* Orange border on focus */
    box-shadow: 0 0 0 3px rgba(254, 107, 64, 0.1); /* Orange focus glow */
}

.form-group small {
    display: block;
    margin-top: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.product-form {
    background: var(--bg-color); /* White background */
    padding: var(--spacing-xl);
    border-radius: 16px; /* Rounded corners */
    box-shadow: var(--shadow-lg); /* Soft shadow */
    max-width: 900px;
    margin: 0 auto;
    border: none; /* No hard borders */
}

.current-image {
    max-width: 200px;
    border-radius: var(--radius-md);
    margin-top: var(--spacing-xs);
    box-shadow: var(--shadow);
}

.auth-link {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link a:hover {
    color: var(--primary-hover); /* Darker orange on hover */
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow);
    border-left: 4px solid;
}

.alert-error {
    background: var(--bg-color);
    color: var(--danger-color); /* Soft red for errors */
    border-color: var(--danger-color);
}

.alert-success {
    background: var(--bg-color);
    color: var(--success-color);
    border-color: var(--success-color);
}

/* Dashboard */
.dashboard-content {
    display: grid;
    gap: var(--spacing-lg);
}

.dashboard-section {
    background: var(--bg-color); /* White background */
    padding: var(--spacing-xl);
    border-radius: 16px; /* Rounded corners */
    box-shadow: var(--shadow-lg); /* Soft shadow */
    border: none; /* No hard borders */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.profile-info p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
    color: var(--text-color);
}

.profile-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tables - Modern Design */
.products-table table,
.admin-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.products-table th,
.admin-table th {
    background: var(--bg-tertiary);
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.products-table td,
.admin-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.products-table tr:last-child td,
.admin-table tr:last-child td {
    border-bottom: none;
}

.products-table tr:hover,
.admin-table tr:hover {
    background: var(--bg-secondary);
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.actions {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: var(--bg-tertiary);
    color: var(--warning-color);
    border: 1px solid var(--border-color);
}

.status-approved {
    background: var(--bg-tertiary);
    color: var(--success-color);
    border: 1px solid var(--border-color);
}

.status-rejected {
    background: var(--bg-tertiary);
    color: var(--danger-color);
    border: 1px solid var(--border-color);
}

.role-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-user {
    background: var(--bg-tertiary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.role-admin {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* Filters */
.products-filters {
    background: var(--bg-color); /* White background */
    padding: var(--spacing-lg);
    border-radius: 16px; /* Rounded corners */
    box-shadow: var(--shadow-lg); /* Soft shadow */
    margin-bottom: var(--spacing-lg);
    border: none; /* No hard borders */
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
}

.results-count {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-color); /* White background */
    border-radius: 16px; /* Rounded corners */
    box-shadow: var(--shadow); /* Soft shadow */
    border: none; /* No hard borders */
}

.no-results p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-color); /* White background */
    padding: var(--spacing-lg);
    border-radius: 16px; /* Rounded corners */
    box-shadow: var(--shadow-lg); /* Soft shadow */
    text-align: center;
    border: none; /* No hard borders */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.admin-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.admin-filters {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.review-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.user-detail {
    display: grid;
    gap: var(--spacing-lg);
}

.user-info-card {
    background: var(--bg-color); /* White background */
    padding: var(--spacing-xl);
    border-radius: 16px; /* Rounded corners */
    box-shadow: var(--shadow-lg); /* Soft shadow */
    border: none; /* No hard borders */
}

.info-group p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

.role-change-form {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
}

.role-change-form form {
    display: flex;
    gap: var(--spacing-md);
    align-items: end;
    flex-wrap: wrap;
}

.role-change-form select {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.role-change-form select:focus {
    outline: none;
    border-color: var(--primary-color); /* Orange border on focus */
    box-shadow: 0 0 0 3px rgba(254, 107, 64, 0.1); /* Orange focus glow */
}

.category-form {
    max-width: 600px;
}

/* Footer - Orange Background */
.footer {
    background: var(--primary-color); /* Orange footer */
    color: white;
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* Branding / Logo Section */
.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
    padding: var(--spacing-xs); /* Larger touch area */
    margin: calc(-1 * var(--spacing-xs)); /* Compensate for padding */
    border-radius: var(--radius-sm);
}

.footer-logo-image {
    height: 40px;
    width: auto;
    max-width: 150px;
    transition: var(--transition);
    display: block;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    display: none;
}

.footer-logo a:hover .footer-logo-image {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Fallback: if logo image doesn't load, show text */
.footer-logo-image[style*="display: none"] + .footer-logo-text,
.footer-logo:not(:has(.footer-logo-image)) .footer-logo-text {
    display: inline-block;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.5;
}

/* Divider / Separator */
.footer-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: var(--spacing-xs) 0;
}

/* Navigation Links Section */
.footer-navigation {
    width: 100%;
}

.footer-nav {
    width: 100%;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md) var(--spacing-lg);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-item {
    margin: 0;
}

.footer-nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: inline-block;
    border-radius: var(--radius-sm);
    opacity: 0.9;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
    user-select: none; /* Prevent text selection on tap */
}

.footer-nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.footer-nav-link:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* Better focus states for accessibility */
.footer-nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Social Media Icons Section */
.footer-social {
    width: 100%;
}

.footer-social-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-item {
    margin: 0;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0.9;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
    user-select: none; /* Prevent text selection on tap */
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
}

.footer-social-link:active {
    transform: translateY(0) scale(0.95);
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
}

/* Better focus states for accessibility */
.footer-social-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Copyright Section */
.footer-copyright {
    width: 100%;
    padding-top: var(--spacing-xs);
}

.footer-copyright p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
    font-weight: 400;
}

.footer p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive Footer Styles - Mobile First Approach */
@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
        font-size: 0.95rem;
        margin-top: var(--spacing-lg);
        position: relative;
    }

    .footer-content {
        gap: var(--spacing-lg);
        padding: 0;
    }

    /* Branding Section - Mobile */
    .footer-branding {
        gap: var(--spacing-sm);
        width: 100%;
    }

    .footer-logo {
        margin-bottom: var(--spacing-sm);
    }

    .footer-logo-image {
        height: 38px;
        max-width: 140px;
    }

    .footer-tagline {
        font-size: 0.9rem;
        padding: 0 var(--spacing-md);
        line-height: 1.6;
        max-width: 100%;
    }

    /* Divider - Mobile */
    .footer-divider {
        max-width: 100%;
        margin: var(--spacing-sm) 0;
        height: 1px;
    }

    /* Navigation Links - Mobile Optimized */
    .footer-navigation {
        width: 100%;
    }

    .footer-nav-list {
        flex-direction: column;
        gap: var(--spacing-xs);
        width: 100%;
        padding: 0;
    }

    .footer-nav-item {
        width: 100%;
        margin: 0;
    }

    .footer-nav-link {
        font-size: 0.95rem;
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 48px; /* Touch-friendly minimum */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        border-radius: var(--radius-md);
        font-weight: 500;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        transition: all 0.2s ease;
    }

    .footer-nav-link:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.98);
    }

    /* Social Icons - Mobile */
    .footer-social {
        width: 100%;
    }

    .footer-social-list {
        gap: var(--spacing-lg);
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-social-link {
        width: 48px; /* Larger touch target */
        height: 48px;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }

    .footer-social-link svg {
        width: 22px;
        height: 22px;
    }

    .footer-social-link:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.25);
    }

    /* Copyright - Mobile */
    .footer-copyright {
        padding-top: var(--spacing-sm);
        width: 100%;
    }

    .footer-copyright p {
        font-size: 0.875rem;
        padding: 0 var(--spacing-sm);
        line-height: 1.5;
        word-break: break-word;
    }
}

/* Small Mobile Devices (phones) */
@media (max-width: 480px) {
    .footer {
        padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .footer-content {
        gap: var(--spacing-md);
    }

    .footer-logo-image {
        height: 35px;
        max-width: 120px;
    }

    .footer-tagline {
        font-size: 0.85rem;
        padding: 0 var(--spacing-sm);
        line-height: 1.6;
    }

    .footer-nav-link {
        font-size: 0.9rem;
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 48px;
    }

    .footer-social-list {
        gap: var(--spacing-md);
    }

    .footer-social-link {
        width: 48px;
        height: 48px;
    }

    .footer-social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-copyright p {
        font-size: 0.8rem;
        padding: 0 var(--spacing-xs);
    }

    .footer-divider {
        margin: var(--spacing-xs) 0;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .footer {
        padding: var(--spacing-md) var(--spacing-xs) var(--spacing-sm);
    }

    .footer-logo-image {
        height: 32px;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

    .footer-nav-link {
        font-size: 0.875rem;
        padding: var(--spacing-sm);
    }

    .footer-social-link {
        width: 44px;
        height: 44px;
    }

    .footer-copyright p {
        font-size: 0.75rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .footer {
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    }

    .footer-content {
        gap: var(--spacing-md);
    }

    .footer-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-xs) var(--spacing-sm);
    }

    .footer-nav-item {
        width: auto;
    }

    .footer-nav-link {
        width: auto;
        min-width: 100px;
        padding: var(--spacing-xs) var(--spacing-sm);
        min-height: 44px;
    }
}

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

/* Featured Products Section */
.featured-products {
    margin-top: var(--spacing-xl);
}

.featured-products h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
}

/* ============================================
   MOBILE RESPONSIVENESS & UX ENHANCEMENTS
   ============================================ */

/* Touch Target Guidelines - Minimum 44x44px */
.btn,
.mobile-menu-toggle,
.nav-list a,
.lang-btn,
.lang-option,
.product-card a,
.category-card,
.pagination-btn,
.tag-badge {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Prevent text size adjustment on iOS */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Improve tap highlight - Orange */
* {
    -webkit-tap-highlight-color: rgba(254, 107, 64, 0.2); /* Orange tap highlight */
}

/* Enhanced Mobile Menu - Compact Design */
@media (max-width: 768px) {
    /* Header improvements - Minimal spacing */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 0;
    }
    
    .header-content {
        padding: 0;
        position: relative;
    }
    
    .header-top {
        padding: var(--spacing-xs) 0;
        gap: var(--spacing-xs);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin-bottom: var(--spacing-xs);
    }
    
    .logo a {
        font-size: 1.4rem;
        padding: 0.25rem 0;
    }
    
    .logo-image {
        height: 32px;
    }
    
    /* Mobile menu toggle - Hidden in header, use floating button instead */
    .search-section .mobile-menu-toggle,
    .search-section .menu-toggle-btn {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Floating button is used for menu instead */
    .floating-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Show menu toggle on desktop when popup menu exists */
    @media (min-width: 769px) {
        /* Hamburger button is shown by default, desktop nav is hidden when popup exists */
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 3px;
        background: var(--text-color);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-toggle.active {
        background: rgba(255, 255, 255, 0.2); /* Light white overlay */
    }
    
    .mobile-menu-toggle.active span {
        background: white;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    
    /* Enhanced mobile navigation */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: var(--shadow-xl);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        z-index: 1000;
        padding-top: 80px;
        display: none; /* Hidden by default on mobile */
    }
    
    .nav.active {
        max-height: 100vh;
        opacity: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    
    /* Show nav on desktop */
    @media (min-width: 769px) {
        .nav {
            position: static;
            display: block;
            max-height: none;
            opacity: 1;
            padding-top: 0;
            background: transparent;
            backdrop-filter: none;
            box-shadow: none;
        }
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--spacing-md) var(--spacing-lg);
        gap: 0;
        list-style: none;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        display: flex;
        align-items: center;
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: var(--radius-md);
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.2s ease;
        margin: 0.25rem 0;
    }
    
    .nav-list a:active {
        background: rgba(255, 255, 255, 0.2); /* Light white overlay */
        color: white;
        transform: scale(0.98);
    }
    
    .nav-list a::after {
        display: none;
    }
    
    .nav-icon-link {
        position: relative;
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    /* Language switcher in mobile menu */
    .nav-list .language-switcher {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        border-top: 2px solid var(--border-color);
        width: 100%;
        display: block;
    }
}

/* Hamburger Menu Popup - Works on Mobile & Desktop */
.menu-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: opacity;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: overlayFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.menu-popup {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(0.9) translateY(20px);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    max-height: 90dvh;
    background: var(--bg-color);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.35), 
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 16px 24px -8px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.menu-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) translateY(0) !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    animation: menuPopupBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes menuPopupBounce {
    0% {
        transform: translate(-50%, -50%) scale(0.8) translateY(30px);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.05) translateY(-5px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
        opacity: 1;
    }
}

.menu-popup::-webkit-scrollbar {
    width: 6px;
}

.menu-popup::-webkit-scrollbar-track {
    background: transparent;
}

.menu-popup::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.menu-popup::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

body[dir="rtl"] .menu-popup {
    /* RTL doesn't affect centered positioning */
    left: 50% !important;
    right: auto !important;
}

body[dir="rtl"] .menu-popup.active {
    transform: translate(-50%, -50%) scale(1) !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
}

/* User Profile Header - Mobile App Style */
.menu-popup-profile-header {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    background: var(--gradient-primary); /* Orange to Green gradient */
    color: white;
    overflow: hidden;
    min-height: 180px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: inset 0 -20px 40px -20px rgba(0, 0, 0, 0.1);
}

.menu-popup-profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: profileHeaderShine 8s ease-in-out infinite;
}

@keyframes profileHeaderShine {
    0%, 100% {
        transform: rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.5;
    }
}

.menu-popup-profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.menu-popup-profile-content {
    position: relative;
    z-index: 1;
}

.menu-popup-profile-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: white;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.menu-popup-profile-link:active {
    background: rgba(255, 255, 255, 0.1);
}

.menu-popup-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.menu-popup-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-popup-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-popup-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.menu-popup-profile-info {
    flex: 1;
    min-width: 0;
}

.menu-popup-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.menu-popup-profile-email {
    font-size: 0.875rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.9);
}

.menu-popup-profile-arrow {
    flex-shrink: 0;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.menu-popup-profile-link:hover .menu-popup-profile-arrow {
    opacity: 1;
    transform: translateX(4px);
}

body[dir="rtl"] .menu-popup-profile-link:hover .menu-popup-profile-arrow {
    transform: translateX(-4px);
}

/* Quick Stats */
.menu-popup-stats {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.menu-popup-stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    text-align: center;
    text-decoration: none;
    color: white;
    transition: var(--transition-fast);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-popup-stat-item:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.98);
}

.menu-popup-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.menu-popup-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.2;
}

/* Simple Header for Non-Logged In Users */
.menu-popup-header-simple {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.menu-popup-header-simple .menu-popup-logo {
    display: flex;
    align-items: center;
}

.menu-popup-header-simple .menu-popup-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: var(--spacing-sm);
}

.menu-popup-header-simple .logo-image {
    height: 32px;
    max-width: 140px;
}

.menu-popup-header-simple .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.menu-popup-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--bg-secondary);
    border: none;
    padding: var(--spacing-xs);
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    transition: var(--transition-fast);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 10001;
    box-shadow: var(--shadow-sm);
    outline: none;
}

body[dir="rtl"] .menu-popup-close {
    right: auto;
    left: var(--spacing-md);
}

.menu-popup-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.menu-popup-close:active {
    transform: rotate(90deg) scale(0.95);
}

.menu-popup-close:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Close button styling for profile header */
.menu-popup-profile-header ~ .menu-popup-close {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-popup-profile-header ~ .menu-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.menu-popup-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-md) 0 var(--spacing-lg);
    background: var(--bg-color);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

@media (max-width: 768px) {
    .menu-popup-content {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: var(--spacing-sm) 0 var(--spacing-md);
    }
}

.menu-popup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-popup-item {
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: menuItemFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.menu-popup.active .menu-popup-item {
    animation: menuItemFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.menu-popup.active .menu-popup-item:nth-child(1) { animation-delay: 0.05s; }
.menu-popup.active .menu-popup-item:nth-child(2) { animation-delay: 0.1s; }
.menu-popup.active .menu-popup-item:nth-child(3) { animation-delay: 0.15s; }
.menu-popup.active .menu-popup-item:nth-child(4) { animation-delay: 0.2s; }
.menu-popup.active .menu-popup-item:nth-child(5) { animation-delay: 0.25s; }
.menu-popup.active .menu-popup-item:nth-child(6) { animation-delay: 0.3s; }
.menu-popup.active .menu-popup-item:nth-child(7) { animation-delay: 0.35s; }
.menu-popup.active .menu-popup-item:nth-child(8) { animation-delay: 0.4s; }
.menu-popup.active .menu-popup-item:nth-child(9) { animation-delay: 0.45s; }
.menu-popup.active .menu-popup-item:nth-child(10) { animation-delay: 0.5s; }
.menu-popup.active .menu-popup-item:nth-child(n+11) { animation-delay: 0.55s; }

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

/* Section Titles */
.menu-popup-section-title {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-xs);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    position: relative;
    opacity: 0;
    animation: menuItemFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.menu-popup.active .menu-popup-section-title {
    animation: menuItemFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.menu-popup-section-title::after {
    content: '';
    position: absolute;
    left: var(--spacing-lg);
    right: var(--spacing-lg);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.menu-popup-section-title:first-child {
    margin-top: 0;
}

.menu-popup-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    border-radius: var(--radius-md);
    margin: 0 var(--spacing-sm);
    margin-bottom: 0.25rem;
    overflow: hidden;
    outline: none;
    cursor: pointer;
}

.menu-popup-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: -2px;
    background: rgba(254, 107, 64, 0.1);
}

.menu-popup-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

body[dir="rtl"] .menu-popup-link::before {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 4px;
}

.menu-popup-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(254, 107, 64, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(254, 107, 64, 0.1);
}

.menu-popup-link svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    stroke-width: 2;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.menu-popup-link span {
    flex: 1;
    font-weight: 500;
}

.menu-popup-link:hover {
    background: linear-gradient(90deg, rgba(254, 107, 64, 0.08) 0%, rgba(254, 107, 64, 0.03) 100%);
    color: var(--primary-color);
    transform: translateX(4px);
    padding-left: calc(var(--spacing-lg) + 4px);
}

body[dir="rtl"] .menu-popup-link:hover {
    transform: translateX(-4px);
    padding-left: var(--spacing-lg);
    padding-right: calc(var(--spacing-lg) + 4px);
}

.menu-popup-link:hover::before {
    transform: scaleY(1);
}

.menu-popup-link:hover .menu-popup-icon-wrapper {
    background: linear-gradient(135deg, rgba(254, 107, 64, 0.15) 0%, rgba(254, 107, 64, 0.08) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.2);
}

.menu-popup-link:hover svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

.menu-popup-link:active {
    background: rgba(254, 107, 64, 0.15);
    transform: translateX(2px) scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (hover: none) and (pointer: coarse) {
    .menu-popup-link:active {
        background: rgba(254, 107, 64, 0.2);
        transform: scale(0.96);
    }
}

.menu-popup-link.active {
    background: linear-gradient(90deg, rgba(111, 156, 61, 0.15) 0%, rgba(111, 156, 61, 0.08) 100%); /* Green gradient for active */
    color: var(--secondary-color); /* Green text */
    font-weight: 600;
    transform: translateX(4px);
    padding-left: calc(var(--spacing-lg) + 4px);
}

body[dir="rtl"] .menu-popup-link.active {
    transform: translateX(-4px);
    padding-left: var(--spacing-lg);
    padding-right: calc(var(--spacing-lg) + 4px);
}

.menu-popup-link.active::before {
    transform: scaleY(1);
    background: var(--secondary-color); /* Green indicator */
}

.menu-popup-link.active .menu-popup-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%); /* Green gradient */
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(111, 156, 61, 0.3);
}

.menu-popup-link.active svg {
    color: white;
    transform: scale(1.1);
}

.menu-popup-link-logout {
    color: var(--danger-color);
}

.menu-popup-link-logout:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--danger-color);
}

.menu-popup-link-logout:hover .menu-popup-icon-wrapper {
    background: rgba(230, 57, 70, 0.2);
}

.menu-popup-link-logout svg {
    color: var(--danger-color);
}

.menu-popup-link-logout.active .menu-popup-icon-wrapper {
    background: var(--danger-color);
}

.menu-popup-link-logout.active svg {
    color: white;
}

.menu-popup-badge {
    background: var(--danger-color);
    color: white;
    border-radius: var(--radius-full);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

.menu-popup-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-md) var(--spacing-lg);
    opacity: 0.5;
}

.menu-popup-language {
    padding: var(--spacing-sm) var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

/* Modern Language Toggle in Menu */
.menu-lang-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.15), 0 2px 4px rgba(254, 107, 64, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 var(--spacing-sm);
    justify-content: space-between;
}

.menu-lang-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 107, 64, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.menu-lang-toggle:hover::before {
    left: 100%;
}

.menu-lang-toggle:hover {
    background: var(--gradient-primary); /* Orange to Green gradient */
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(254, 107, 64, 0.3), 0 4px 8px rgba(254, 107, 64, 0.2);
}

.menu-lang-toggle:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(254, 107, 64, 0.25);
}

.menu-lang-toggle .menu-popup-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: rgba(254, 107, 64, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.menu-lang-toggle:hover .menu-popup-icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(360deg) scale(1.1);
}

.menu-lang-toggle .lang-globe-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    stroke: currentColor;
}

.menu-lang-toggle:hover .lang-globe-icon {
    transform: scale(1.15);
    stroke: white;
}

.menu-lang-toggle span {
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
    flex: 1;
    text-align: left;
}

.menu-lang-toggle .lang-switch-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.menu-lang-toggle:hover .lang-switch-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.menu-lang-toggle.switching {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.menu-lang-toggle.switching .menu-popup-icon-wrapper {
    animation: langTogglePulse 0.8s ease infinite;
}

.menu-lang-toggle.switching::before {
    animation: shimmerPulse 1s ease infinite;
}

.menu-lang-toggle:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Prevent body scroll when menu is open */
body.menu-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive Design - Centered Menu */
@media (max-width: 768px) {
    .menu-popup {
        width: 90%;
        max-width: 380px;
        max-height: 85vh;
        max-height: 85dvh;
        border-radius: var(--radius-lg);
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    .menu-popup.active {
        transform: translate(-50%, -50%) scale(1) !important;
        top: 50% !important;
        left: 50% !important;
    }
    
    .menu-popup-profile-header {
        min-height: 160px;
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .menu-popup-avatar {
        width: 60px;
        height: 60px;
    }
    
    .menu-popup-profile-name {
        font-size: 1.1rem;
    }
    
    .menu-popup-stat-value {
        font-size: 1.25rem;
    }
    
    .menu-popup-link {
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 52px;
    }
}

@media (min-width: 769px) {
    .menu-popup {
        width: 500px;
        max-height: 85vh;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    .menu-popup.active {
        transform: translate(-50%, -50%) scale(1) !important;
        top: 50% !important;
        left: 50% !important;
    }
    
    /* Show hamburger button on desktop too */
    .menu-toggle-btn,
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .menu-popup-profile-header {
        min-height: 200px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .menu-popup {
        width: 95%;
        max-width: 100%;
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: var(--radius-md);
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    .menu-popup.active {
        transform: translate(-50%, -50%) scale(1) !important;
        top: 50% !important;
        left: 50% !important;
    }
    
    .menu-popup-profile-header {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        padding: var(--spacing-md);
    }
    
    .menu-popup-stats {
        gap: var(--spacing-xs);
    }
    
    .menu-popup-stat-item {
        padding: var(--spacing-xs);
        min-height: 55px;
    }
    
    .menu-popup-stat-value {
        font-size: 1.1rem;
    }
    
    .menu-popup-stat-label {
        font-size: 0.7rem;
    }
    
    .menu-popup-link {
        padding: var(--spacing-sm);
        min-height: 48px;
        font-size: 0.9rem;
    }
    
    .menu-popup-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .menu-popup-link svg {
        width: 18px;
        height: 18px;
    }
    
    .menu-popup-close {
        top: var(--spacing-xs);
        right: var(--spacing-xs);
        min-width: 36px;
        min-height: 36px;
    }
}

/* Floating Hamburger Button (Not in Header) - Always Visible */
.floating-menu-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary); /* Orange to Green gradient */
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(254, 107, 64, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.15),
                0 0 0 0 rgba(254, 107, 64, 0.4);
    cursor: pointer;
    z-index: 10000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow: visible;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    animation: floatingButtonAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1),
               floatingButtonPulse 3s ease-in-out infinite;
    visibility: visible;
    opacity: 1;
}

/* RTL Support for Floating Button */
body[dir="rtl"] .floating-menu-btn {
    right: auto;
    left: 1.5rem;
}

.floating-menu-btn:hover,
.floating-menu-btn:focus {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 12px 32px rgba(254, 107, 64, 0.5),
                0 6px 12px rgba(0, 0, 0, 0.2),
                0 0 0 4px rgba(254, 107, 64, 0.2);
    outline: none;
    animation: none;
}

.floating-menu-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(254, 107, 64, 0.4),
                0 1px 2px rgba(0, 0, 0, 0.1);
}

.floating-menu-btn.active {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c53030 100%);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.15);
    animation: none;
}

.floating-menu-btn.active:hover {
    background: linear-gradient(135deg, #c53030 0%, var(--danger-color) 100%);
    transform: rotate(90deg) scale(1.2) translateY(-2px);
    box-shadow: 0 12px 32px rgba(230, 57, 70, 0.5),
                0 6px 12px rgba(0, 0, 0, 0.2);
}

.floating-menu-icon,
.floating-menu-icon-close {
    position: absolute;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-menu-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.floating-menu-icon-close {
    opacity: 0;
    transform: rotate(90deg);
}

.floating-menu-btn.active .floating-menu-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.floating-menu-btn.active .floating-menu-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.floating-menu-btn svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* Responsive adjustments for floating button */
@media (max-width: 768px) {
    .floating-menu-btn {
        width: 56px !important;
        height: 56px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        bottom: max(1.5rem, calc(1.5rem + env(safe-area-inset-bottom))) !important;
        right: max(1.5rem, calc(1.5rem + env(safe-area-inset-right))) !important;
        z-index: 10000 !important;
    }
    
    /* Adjust position if bottom navigation exists */
    body:has(.bottom-nav) .floating-menu-btn {
        bottom: max(calc(70px + 1rem), calc(70px + 1rem + env(safe-area-inset-bottom))) !important;
    }
    
    body[dir="rtl"] .floating-menu-btn {
        left: max(1.5rem, calc(1.5rem + env(safe-area-inset-left))) !important;
        right: auto !important;
    }
    
    body[dir="ltr"] .floating-menu-btn {
        right: max(1.5rem, calc(1.5rem + env(safe-area-inset-right))) !important;
        left: auto !important;
    }
    
    .floating-menu-icon,
    .floating-menu-icon-close {
        width: 24px;
        height: 24px;
    }
    
    /* Ensure no overlap with language switcher */
    .floating-menu-btn {
        margin: 0;
    }
}

/* Desktop enhancements - Hide floating button on desktop, use regular nav instead */
@media (min-width: 769px) {
    .floating-menu-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    body[dir="rtl"] .floating-menu-btn {
        left: 2rem !important;
        right: auto !important;
    }
    
    body[dir="ltr"] .floating-menu-btn {
        right: 2rem !important;
        left: auto !important;
    }
    
    .floating-menu-icon,
    .floating-menu-icon-close {
        width: 28px;
        height: 28px;
    }
    
    /* Subtle pulse on desktop */
    .floating-menu-btn:not(.active) {
        animation: floatingButtonAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                   floatingButtonPulse 4s ease-in-out infinite;
    }
}

/* Hide on very small screens if needed, or adjust size */
@media (max-width: 360px) {
    .floating-menu-btn {
        width: 52px;
        height: 52px;
        bottom: 1rem;
        right: 1rem;
    }
    
    body[dir="rtl"] .floating-menu-btn {
        left: 1rem;
        right: auto;
    }
    
    .floating-menu-icon,
    .floating-menu-icon-close {
        width: 22px;
        height: 22px;
    }
}

/* Accessibility: Focus visible indicator */
.floating-menu-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    background: var(--primary-hover);
}

/* Animation for button appearance */
@keyframes floatingButtonAppear {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(30px) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

/* Pulse animation when menu is closed */
@keyframes floatingButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(254, 107, 64, 0.4),
                    0 4px 8px rgba(0, 0, 0, 0.15),
                    0 0 0 0 rgba(254, 107, 64, 0.4);
    }
    50% {
        box-shadow: 0 8px 28px rgba(254, 107, 64, 0.5),
                    0 6px 12px rgba(0, 0, 0, 0.2),
                    0 0 0 8px rgba(254, 107, 64, 0);
    }
}

/* Ripple effect on click */
@keyframes floatingButtonRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.floating-menu-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.floating-menu-btn:active::before {
    animation: floatingButtonRipple 0.6s ease-out;
}
    
    .nav-list .language-switcher .lang-dropdown {
        width: 100%;
    }
    
    .nav-list .lang-btn {
        width: 100%;
        justify-content: space-between;
        padding: var(--spacing-md) var(--spacing-lg);
        min-height: 56px;
        background: transparent;
        border: none;
        color: var(--text-color);
        font-size: 1.05rem;
        font-weight: 600;
        text-align: left;
        border-radius: 0;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-list .lang-btn svg {
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }
    
    body[dir="rtl"] .nav-list .lang-btn {
        text-align: right;
    }
    
    .nav-list .lang-btn:hover {
        background: rgba(254, 107, 64, 0.08);
        color: var(--primary-color);
    }
    
    .nav-list .lang-btn:active {
        background: rgba(254, 107, 64, 0.15);
        transform: scale(0.98);
    }
    
    .nav-list .lang-btn:hover svg {
        opacity: 1;
    }
    
    .nav-list .lang-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
    }
    
    .nav-list .lang-dropdown.active .lang-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        margin-top: 0.5rem;
    }
    
    .nav-list .lang-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--spacing-md) var(--spacing-lg);
        color: var(--text-color);
        text-decoration: none;
        border-radius: var(--radius-md);
        margin: 0.25rem 0;
        min-height: 56px;
        font-size: 1.1rem;
        font-weight: 500;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list .lang-option:last-child {
        border-bottom: none;
    }
    
    .nav-list .lang-option:hover {
        background: var(--bg-secondary);
        color: var(--primary-color);
    }
    
    .nav-list .lang-option.active {
        background: var(--secondary-color);
        color: var(--primary-color);
        font-weight: 600;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-md);
    }
    
    /* Search bar mobile */
    .hero-search {
        max-width: 100%;
        margin: var(--spacing-md) auto;
    }
    
    .search-input-wrapper {
        border-radius: var(--radius-lg);
    }
    
    .search-input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 1rem 1.5rem;
        min-width: 56px;
    }
    
    /* Product detail mobile */
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-image-section img {
        border-radius: var(--radius-md);
    }
    
    .product-info-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .product-price-large {
        font-size: 2.25rem;
    }
    
    /* Categories grid mobile */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .category-card {
        padding: var(--spacing-sm) var(--spacing-xs);
        min-height: 90px;
    }
    
    .category-card h3 {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    /* Hero buy/sell mobile */
    .hero-buy-sell {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-buy,
    .hero-sell {
        padding: var(--spacing-lg);
        min-height: 150px;
    }
    
    .hero-buy h2,
    .hero-sell h2 {
        font-size: 2rem;
    }
    
    .hero-buy p,
    .hero-sell p {
        font-size: 0.875rem;
    }
    
    /* Location selector mobile */
    .location-selector {
        font-size: 0.75rem;
        padding: var(--spacing-xs);
    }
    
    .location-flag {
        width: 16px;
        height: 16px;
    }
    
    /* Header mobile */
    .header-top {
        padding: var(--spacing-sm) 0;
        position: relative;
        flex-wrap: wrap;
    }
    
    .header-icons {
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
    }
    
    .header-icon-btn {
        min-width: 38px;
        min-height: 38px;
        padding: 0.4rem;
        border-radius: var(--radius);
    }
    
    .add-listing-btn-header {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.75rem;
        min-height: 38px;
        gap: 0.3rem;
        border-radius: var(--radius-md);
    }
    
    .add-listing-btn-header svg {
        width: 14px;
        height: 14px;
    }
    
    /* Language switcher in header top-right on mobile */
    /* Language switcher removed from header - now only in menu popup */
    
    /* Hide hamburger menu toggle in search section - removed from header */
    .search-section .mobile-menu-toggle,
    .search-section .menu-toggle-btn {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Search section takes full width without hamburger button */
    .search-section {
        width: 100%;
        gap: 0;
    }
    
    /* Ensure header-top has enough space for language switcher */
    .header-top {
        min-height: 50px;
        padding-right: 100px; /* Space for language switcher */
    }
    
    body[dir="rtl"] .header-top {
        padding-right: 0;
        padding-left: 100px;
    }
    
    /* Better touch spacing for buttons */
    .btn, .header-icon-btn, .add-listing-btn-header {
        min-height: 44px;
        min-width: 44px;
        padding: var(--spacing-sm);
    }
    
    /* Ensure no UI elements overlap */
    .header-icons {
        gap: var(--spacing-xs);
    }
    
    /* Safe area support for header */
    .header {
        padding-top: max(0, env(safe-area-inset-top));
    }
    
    /* Safe area support for main content */
    .main-content {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
    
    /* Search section mobile improvements - Compact, no white space */
    .search-section {
        margin-bottom: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
        width: 100%;
    }
    
    .search-section .search-form {
        width: 100%;
        flex: 1;
    }
    
    .search-input-wrapper {
        min-height: 46px;
        border-radius: var(--radius-lg);
        width: 100%;
        margin: 0;
    }
    
    .search-input-wrapper .search-input {
        font-size: 0.9rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .search-input-wrapper .search-btn {
        min-width: 70px;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
        font-weight: 600;
        margin: 3px;
    }
    
    .search-input-wrapper svg {
        margin-left: var(--spacing-sm);
        width: 18px;
        height: 18px;
    }
    
    @media (min-width: 360px) {
        .add-listing-btn-header span {
            display: inline;
        }
    }
    
    .search-section {
        flex-wrap: wrap;
        margin-bottom: var(--spacing-sm);
    }
    
    .search-input-wrapper {
        min-height: 44px;
        flex: 1;
        min-width: 0;
    }
    
    .menu-toggle-btn {
        min-width: 48px;
        min-height: 48px;
        flex-shrink: 0;
    }
    
    .logo-image {
        height: 32px;
        max-width: 140px;
    }
    
    .header-icon-btn {
        min-width: 40px;
        min-height: 40px;
        padding: var(--spacing-xs);
    }
    
    /* Products grid mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: 0;
    }
    
    .product-card {
        border-radius: var(--radius-md);
        padding: var(--spacing-xs);
        margin: 0;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-card .product-info {
        padding: var(--spacing-xs);
    }
    
    .product-info {
        padding: var(--spacing-md);
    }
    
    .product-info h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    /* Forms mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Filter form mobile */
    .products-filters {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .filter-form {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        min-height: 48px;
        padding: 0.875rem 1rem;
    }
    
    .filter-actions {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .filter-actions .btn {
        width: 100%;
        min-height: 48px;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .btn-sm {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
    }
    
    /* Admin stats mobile */
    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    /* Tables mobile */
    .products-table,
    .admin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    
    .products-table table,
    .admin-table table {
        font-size: 0.875rem;
        min-width: 600px;
    }
    
    .products-table th,
    .products-table td,
    .admin-table th,
    .admin-table td {
        padding: var(--spacing-sm);
        white-space: nowrap;
    }
    
    /* Section headers mobile - Compact */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
        padding: 0;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
        margin: 0;
        padding: 0;
    }
    
    /* Remove excessive margins from headings */
    h1, h2, h3, h4, h5, h6 {
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    h1:first-child,
    h2:first-child,
    h3:first-child {
        margin-top: 0;
    }
    
    /* Container mobile - Minimal padding, no white spaces */
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .main-content {
        padding: var(--spacing-xs) 0;
        min-height: calc(100vh - 120px);
    }
    
    /* Remove excessive margins */
    section {
        margin-bottom: var(--spacing-md);
    }
    
    section:last-child {
        margin-bottom: 0;
    }
    
    /* Product actions mobile */
    .product-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .product-actions .btn {
        width: 100%;
        min-height: 48px;
    }
    
    /* Pagination mobile */
    .pagination {
        gap: var(--spacing-xs);
        padding: var(--spacing-md) 0;
    }
    
    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }
    
    /* Tags mobile */
    .tags-list {
        gap: var(--spacing-xs);
    }
    
    .tag-badge {
        padding: var(--spacing-sm) var(--spacing-md);
        min-height: 40px;
        font-size: 0.875rem;
    }
    
    /* Auth container mobile */
    .auth-container {
        margin: var(--spacing-md) auto;
        padding: var(--spacing-lg);
        max-width: 100%;
    }
    
    /* Profile container mobile */
    .profile-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-content {
        order: 1;
    }
    
    /* Dashboard mobile */
    .dashboard-section {
        padding: var(--spacing-md);
    }
    
    /* Flash messages mobile - Compact */
    .flash-message {
        margin: var(--spacing-xs) var(--spacing-xs);
        padding: var(--spacing-sm);
        border-radius: var(--radius-md);
    }
    
    /* Auth container mobile - Compact */
    .auth-container {
        margin: var(--spacing-sm) auto;
        padding: var(--spacing-md);
        max-width: 100%;
    }
    
    /* Dashboard mobile - Compact */
    .dashboard-section {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    /* Pagination mobile - Compact */
    .pagination {
        gap: var(--spacing-xs);
        padding: var(--spacing-sm) 0;
        margin: var(--spacing-sm) 0;
    }
    
    .pagination-btn {
        min-width: 40px;
        min-height: 40px;
        padding: var(--spacing-xs);
        font-size: 0.85rem;
    }
    
    /* Autocomplete mobile */
    .autocomplete-results {
        max-height: 60vh;
        border-radius: var(--radius-md);
    }
    
    .autocomplete-item {
        padding: var(--spacing-md);
        min-height: 60px;
    }
    
    /* Results header mobile */
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .active-filters {
        width: 100%;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Improve scrolling performance */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Small mobile devices (phones) */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .product-price-large {
        font-size: 1.75rem;
    }
    
    .product-info-section h1 {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card {
        min-height: 100px;
        padding: var(--spacing-sm);
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .main-content {
        padding: var(--spacing-sm) 0;
    }
    
    .products-filters {
        padding: var(--spacing-sm);
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
}

/* Tablet optimization */
@media (min-width: 481px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail-content {
        gap: var(--spacing-xl);
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .nav {
        padding-top: 60px;
    }
    
    /* Banner Section Responsive - Landscape */
    .banner-item {
        height: 20vh;
        min-height: 100px;
        max-height: 150px;
    }
    
    .banner-title {
        font-size: 1.25rem;
    }
    
    .banner-description {
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: var(--spacing-md) 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection - Orange highlight */
::selection {
    background: var(--primary-color); /* Orange selection */
    color: white;
}

::-moz-selection {
    background: var(--primary-color); /* Orange selection */
    color: white;
}

/* Enhanced Authentication Styles */
.social-login {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.social-login h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.social-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
}

.btn-social:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.btn-apple:hover {
    border-color: #000;
    color: #000;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0; /* Exact margin as specified */
    color: var(--text-secondary);
    height: 2px; /* Exact height as specified */
    background: var(--gradient-primary); /* Gradient from orange to green */
    border: none;
    position: relative;
}

.divider::before,
.divider::after {
    display: none; /* Remove old divider lines */
}

.divider span {
    padding: 0 var(--spacing-md);
    font-size: 0.875rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.password-strength {
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.password-strength.strong {
    background: var(--bg-tertiary);
    color: var(--success-color);
}

.password-strength.weak {
    background: var(--bg-tertiary);
    color: var(--danger-color);
}

.strength-strong::before {
    content: '✓ ';
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.auth-links {
    text-align: center;
    margin-top: var(--spacing-md);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.twofa-container {
    text-align: center;
}

.twofa-container h2 {
    margin-bottom: var(--spacing-sm);
}

.twofa-container p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Profile Management Styles */
.profile-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.profile-picture-section {
    text-align: center;
}

.profile-picture-large {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--border-color);
    margin-bottom: var(--spacing-sm);
}

.verification-badges {
    background: var(--bg-color); /* White background */
    padding: var(--spacing-md);
    border-radius: 10px; /* Rounded corners */
    box-shadow: var(--shadow); /* Soft shadow */
}

.verification-badges h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.badge-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.badge-item {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-verified-email,
.badge-verified-phone,
.badge-verified-id {
    background: var(--bg-tertiary);
    color: var(--success-color);
    border: 1px solid var(--border-color);
}

.badge-verified-seller,
.badge-premium-seller {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.profile-section {
    background: var(--bg-color); /* White background */
    padding: var(--spacing-lg);
    border-radius: 12px; /* Rounded corners */
    box-shadow: var(--shadow); /* Soft shadow */
}

.profile-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.profile-section h3 {
    font-size: 1.125rem;
    margin: var(--spacing-md) 0 var(--spacing-sm);
    color: var(--text-secondary);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.verified {
    color: var(--success-color);
    font-weight: 500;
}

.unverified {
    color: var(--text-secondary);
}

.unverified a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: var(--spacing-xs);
}

.unverified a:hover {
    text-decoration: underline;
}

.text-muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-content {
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .btn-social {
        width: 100%;
        min-height: 48px;
    }
}

/* Additional Mobile UX Enhancements */

/* Loading states for better feedback */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Active state for buttons */
.btn:active {
    transform: scale(0.98);
}

/* Focus visible for accessibility - Orange */
.btn:focus-visible,
.nav-list a:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--primary-color); /* Orange focus outline */
    outline-offset: 2px;
}

/* Links - Orange color with underline on hover */
a {
    touch-action: manipulation;
    color: var(--text-primary); /* Primary text color - Orange */
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
    text-decoration: underline; /* Underline on hover */
}

a:focus {
    color: var(--text-primary);
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Text color utilities */
.text-primary {
    color: var(--text-primary) !important; /* Orange */
}

.text-secondary-color {
    color: var(--text-secondary-color) !important; /* Green */
}

.text-light {
    color: var(--text-color-light) !important; /* White */
}

.text-dark {
    color: var(--text-color) !important; /* Dark gray */
}

    /* Compact mobile lists - Minimal spacing */
@media (max-width: 768px) {
    ul, ol {
        padding-left: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    /* Improve readability with compact spacing */
    p, li {
        line-height: 1.6;
        margin-bottom: var(--spacing-xs);
    }
    
    /* Compact spacing between sections */
    section {
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm) 0;
    }
    
    section:first-child {
        padding-top: 0;
    }
    
    section:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    /* Compact card spacing */
    .product-card,
    .category-card {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Remove excessive padding from cards */
    .product-card {
        padding: var(--spacing-sm);
    }
    
    .category-card {
        padding: var(--spacing-sm);
    }
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix overlapping elements on mobile */
@media (max-width: 768px) {
    /* Ensure header doesn't overlap content */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .main-content {
        padding-top: var(--spacing-md);
    }
    
    /* Fix badge positioning */
    .featured-badge,
    .new-badge,
    .discount-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 10;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: var(--radius-sm);
        font-weight: 600;
        pointer-events: none;
    }
    
    .new-badge {
        left: 8px;
        right: auto;
    }
    
    /* Ensure modals and overlays don't overlap */
    .modal,
    .overlay,
    .popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix language dropdown on mobile */
    .lang-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure search autocomplete doesn't overlap */
    .autocomplete-results {
        position: fixed;
        top: auto;
        left: var(--spacing-md);
        right: var(--spacing-md);
        max-height: 50vh;
        margin-top: 0.5rem;
    }
    
    /* Fix product card badges */
    .product-card {
        position: relative;
    }
    
    .product-card .featured-badge,
    .product-card .new-badge {
        position: absolute;
        top: 8px;
        z-index: 5;
    }
    
    /* Ensure buttons don't overlap in product actions */
    .product-actions {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .product-actions .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Fix filter form spacing */
    .filter-form {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .filter-row {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        margin-bottom: 0;
    }
    
    /* Ensure no horizontal overflow */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix table overflow */
    .products-table,
    .admin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
    }
    
    /* Ensure proper spacing between sections */
    section + section {
        margin-top: var(--spacing-xl);
    }
}

/* Loading placeholder for images */
.product-card img,
.category-card img {
    background: var(--bg-secondary);
    background: var(--bg-secondary);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

.product-card img[src],
.category-card img[src] {
    animation: none;
    background: transparent;
}

/* Improve scrollbar on mobile */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--text-secondary);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color); /* Orange scrollbar */
    }
}

/* Bottom Navigation Bar (Mobile) */
/* Enhanced Bottom Navigation Bar - Mobile & Tablet */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08), 0 -2px 8px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    display: none; /* Hidden on desktop */
    padding: 0.5rem 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav.hidden {
    transform: translateY(100%);
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0 0.5rem;
    height: auto;
    min-height: 70px;
    max-width: 100%;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-width: 0;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.25rem;
    min-width: 50px;
    min-height: 60px;
    border-radius: var(--radius-md);
    gap: 0.25rem;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bottom-nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.bottom-nav-link:active::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.bottom-nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.bottom-nav-link.active {
    color: var(--secondary-color); /* Green for active */
    font-weight: 600;
}

.bottom-nav-link.active::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
    background: var(--secondary-color); /* Green background */
}

.bottom-nav-link.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(111, 156, 61, 0.3));
}

.bottom-nav-link svg,
.bottom-nav-link .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 2;
}

.bottom-nav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-link.active span {
    font-weight: 600;
}

.bottom-nav-add-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary); /* Orange to Green gradient */
    color: white;
    border: 3px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(254, 107, 64, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -12px;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bottom-nav-add-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.bottom-nav-add-btn:hover {
    background: var(--gradient-primary); /* Orange to Green gradient */
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(254, 107, 64, 0.5), 0 4px 8px rgba(111, 156, 61, 0.25);
}

.bottom-nav-add-btn:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 2px 8px rgba(254, 107, 64, 0.4), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bottom-nav-add-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-add-btn:hover svg {
    transform: rotate(90deg);
}

.bottom-nav-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    border: 2px solid var(--bg-color);
    padding: 0 0.25rem;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
    animation: pulse 2s infinite;
    z-index: 5;
}

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

/* RTL Support for Bottom Navigation */
body[dir="rtl"] .bottom-nav {
    direction: rtl;
}

body[dir="rtl"] .bottom-nav-list {
    direction: rtl;
}

body[dir="rtl"] .bottom-nav-badge {
    right: auto;
    left: 0.25rem;
}

body[dir="rtl"] .bottom-nav-link {
    direction: rtl;
}

body[dir="rtl"] .bottom-nav-link span {
    direction: rtl;
    text-align: center;
}

/* Show bottom nav on mobile and tablet */
@media (max-width: 1024px) {
    .bottom-nav {
        display: block;
    }
    
    /* Add padding to main content to prevent overlap */
    .main-content {
        padding-bottom: 90px;
    }
    
    /* Add margin to footer to prevent overlap */
    .footer {
        margin-bottom: 90px;
    }
    
    /* Ensure other content doesn't overlap */
    main {
        padding-bottom: 90px;
    }
    
    /* Product cards and other content spacing */
    .products-grid,
    .product-list,
    .category-grid {
        padding-bottom: 1rem;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .bottom-nav-list {
        padding: 0 1rem;
        min-height: 75px;
    }
    
    .bottom-nav-link {
        font-size: 0.75rem;
        min-height: 65px;
        padding: 0.5rem 0.5rem;
    }
    
    .bottom-nav-link svg {
        width: 26px;
        height: 26px;
    }
    
    .bottom-nav-add-btn {
        width: 60px;
        height: 60px;
        margin-top: -15px;
    }
    
    .main-content,
    .footer,
    main {
        padding-bottom: 100px;
    }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .bottom-nav-list {
        min-height: 70px;
    }
    
    .bottom-nav-link {
        font-size: 0.65rem;
        min-width: 45px;
        padding: 0.4rem 0.2rem;
    }
    
    .bottom-nav-link svg {
        width: 22px;
        height: 22px;
    }
    
    .main-content,
    .footer,
    main {
        padding-bottom: 85px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .bottom-nav-link {
        font-size: 0.6rem;
        min-width: 40px;
        padding: 0.35rem 0.15rem;
        gap: 0.2rem;
    }
    
    .bottom-nav-link svg {
        width: 20px;
        height: 20px;
    }
    
    .bottom-nav-add-btn {
        width: 52px;
        height: 52px;
        margin-top: -10px;
    }
    
    .bottom-nav-add-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .bottom-nav-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.55rem;
        top: 0.15rem;
        right: 0.15rem;
    }
    
    body[dir="rtl"] .bottom-nav-badge {
        left: 0.15rem;
    }
}

/* Additional spacing rules to prevent content overlap */
@media (max-width: 1024px) {
    /* Ensure product grids and lists have proper spacing */
    .products-grid,
    .product-grid,
    .product-list,
    .category-grid,
    .wishlist-grid {
        margin-bottom: 2rem;
    }
    
    /* Ensure forms don't overlap */
    .form-container,
    .auth-form,
    .product-form {
        margin-bottom: 2rem;
    }
    
    /* Ensure cards and containers have spacing */
    .card,
    .product-card,
    .category-card {
        margin-bottom: 1rem;
    }
    
    /* Ensure modals and overlays are above bottom nav */
    .modal,
    .overlay,
    .popup {
        z-index: 2000;
    }
    
    /* Ensure dropdowns are above bottom nav */
    .dropdown-menu,
    .lang-menu {
        z-index: 1500;
    }
    
    /* Ensure flash messages don't overlap */
    .flash-message {
        margin-bottom: 1rem;
    }
    
    /* Ensure pagination has spacing */
    .pagination {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    /* Ensure tables have spacing */
    table {
        margin-bottom: 2rem;
    }
    
    /* Ensure sections have proper spacing */
    section {
        margin-bottom: 2rem;
    }
    
    /* Ensure hero sections account for bottom nav */
    .hero-section {
        margin-bottom: 2rem;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .header,
    .main-content,
    .footer {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
    
    .header {
        padding-top: max(0px, env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: max(var(--spacing-xl), env(safe-area-inset-bottom));
    }
    
    .bottom-nav {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
    
    /* Ensure content accounts for safe area on mobile */
    @media (max-width: 1024px) {
        .main-content,
        .footer,
        main {
            padding-bottom: max(90px, calc(90px + env(safe-area-inset-bottom)));
        }
        
        @media (min-width: 769px) {
            .main-content,
            .footer,
            main {
                padding-bottom: max(100px, calc(100px + env(safe-area-inset-bottom)));
            }
        }
    }
}

/* ============================================
   Dashboard Page Styles
   ============================================ */

.dashboard-page {
    padding: var(--spacing-lg) 0;
    min-height: calc(100vh - 200px);
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.dashboard-header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.dashboard-avatar-section {
    flex-shrink: 0;
}

.dashboard-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.dashboard-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.dashboard-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-color);
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.dashboard-avatar-edit:hover {
    background: var(--primary-orange);
    color: white;
    transform: scale(1.1);
}

.dashboard-info-section {
    flex: 1;
}

.dashboard-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-xs) 0;
    color: white;
}

.dashboard-username {
    font-size: 1.125rem;
    margin: 0 0 var(--spacing-sm) 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    backdrop-filter: blur(10px);
}

.dashboard-badge svg {
    flex-shrink: 0;
}

.dashboard-bio {
    margin: var(--spacing-sm) 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.dashboard-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-meta-item svg {
    flex-shrink: 0;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.dashboard-stat-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
    color: var(--text-color);
}

.dashboard-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    position: relative;
}

.dashboard-stat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: var(--radius-full);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--bg-color);
}

.dashboard-stat-content {
    flex: 1;
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dashboard-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Quick Actions */
.dashboard-quick-actions {
    margin-bottom: var(--spacing-xl);
}

.dashboard-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.quick-action-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
    color: var(--text-color);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.quick-action-card:hover .quick-action-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
}

.quick-action-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
}

.quick-action-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Dashboard Tabs */
.dashboard-tabs-container {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-tabs {
    display: flex;
    border-bottom: 2px solid var(--bg-secondary);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-tabs::-webkit-scrollbar {
    display: none;
}

.dashboard-tab {
    flex: 1;
    min-width: 150px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.dashboard-tab:hover {
    color: var(--primary-orange);
    background: var(--bg-secondary);
}

.dashboard-tab.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
    background: var(--bg-secondary);
}

.dashboard-tab svg {
    flex-shrink: 0;
}

.dashboard-tab-panels {
    padding: var(--spacing-xl);
}

.dashboard-tab-panel {
    display: none;
}

.dashboard-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: var(--spacing-xl);
}

.dashboard-section:last-child {
    margin-bottom: 0;
}

.dashboard-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.dashboard-info-item {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.dashboard-info-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-info-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.verified-indicator {
    color: var(--success-color);
    margin-left: 0.5rem;
    font-weight: bold;
}

.verify-link {
    color: var(--primary-orange);
    text-decoration: none;
    margin-left: 0.5rem;
    font-weight: 500;
}

.verify-link:hover {
    text-decoration: underline;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-badge.role-user {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.role-badge.role-seller {
    background: rgba(165, 201, 15, 0.1);
    color: var(--primary-green);
}

.role-badge.role-admin {
    background: rgba(254, 107, 64, 0.1);
    color: var(--primary-orange);
}

.dashboard-bio-text {
    color: var(--text-color);
    line-height: 1.8;
    white-space: pre-wrap;
}

.dashboard-location p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.dashboard-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 500;
}

.social-link:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.linkedin:hover {
    background: #0077b5;
}

/* Dashboard Forms */
.dashboard-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(254, 107, 64, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--bg-secondary);
}

/* Dashboard Products Table */
.dashboard-products-table {
    overflow-x: auto;
}

.dashboard-products-table table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-products-table th {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.dashboard-products-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--bg-secondary);
}

.dashboard-products-table tr:hover {
    background: var(--bg-secondary);
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
}

.no-image-small {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-active {
    background: rgba(165, 201, 15, 0.1);
    color: var(--primary-green);
}

.status-badge.status-pending {
    background: rgba(255, 136, 41, 0.1);
    color: var(--secondary-orange);
}

.status-badge.status-sold {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.dashboard-section-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--bg-secondary);
    text-align: center;
}

.dashboard-empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.dashboard-empty-state svg {
    margin: 0 auto var(--spacing-md);
    color: var(--text-secondary);
    opacity: 0.5;
}

.dashboard-empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.dashboard-empty-state p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

/* Verification Status */
.verification-status-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.verification-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 2px solid transparent;
}

.verification-item.verified {
    border-color: var(--success-color);
    background: rgba(165, 201, 15, 0.05);
}

.verification-item.unverified {
    border-color: var(--warning-color);
    background: rgba(255, 136, 41, 0.05);
}

.verification-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verification-item.verified .verification-icon {
    background: rgba(165, 201, 15, 0.1);
    color: var(--success-color);
}

.verification-item.unverified .verification-icon {
    background: rgba(255, 136, 41, 0.1);
    color: var(--warning-color);
}

.verification-content {
    flex: 1;
}

.verification-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
}

.verification-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-avatar {
        width: 100px;
        height: 100px;
    }
    
    .dashboard-name {
        font-size: 1.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .dashboard-tab {
        min-width: 120px;
        font-size: 0.875rem;
    }
    
    .dashboard-tab-panels {
        padding: var(--spacing-md);
    }
    
    .dashboard-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .dashboard-products-table {
        font-size: 0.875rem;
    }
    
    .dashboard-products-table th,
    .dashboard-products-table td {
        padding: var(--spacing-sm);
    }
    
    .verification-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-action-card {
        flex-direction: column;
        text-align: center;
    }
}