/**
 * ==================== MAURITANIAN GATEWAY - STYLESHEET ====================
 * @version 2.3.0 (Sidebar Header Update)
 */

/* ==================== 1. CSS VARIABLES ==================== */
:root {
    /* Visual Identity: Logo-Based Colors */
    --color-primary: #4CAF50;
    --color-primary-dark: #388E3C;
    --color-secondary: #FFC107;
    --color-accent: #D32F2F;
    
    /* Gradient */
    --brand-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    
    /* Background Colors */
    --bg-body: #F1F8E9;
    --bg-card: rgba(255, 255, 255, 0.96);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Text Colors */
    --text-dark: #1B5E20;
    --text-gray: #555555;
    --text-light: #81C784;
    --text-white: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(76, 175, 80, 0.08);
    --shadow-card: 0 10px 30px rgba(76, 175, 80, 0.12);
    --shadow-hover: 0 20px 40px rgba(76, 175, 80, 0.25);
    --shadow-btn: 0 4px 15px rgba(76, 175, 80, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Layout */
    --sidebar-width: 260px;
    --nav-height: 70px;
    --container-max-width: 1000px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    
    /* Z-Index Scale */
    --z-sidebar: 1001;
    --z-bottom-nav: 1000;
    --z-modal: 2000;
    --z-notification: 3000;
}

/* ==================== 2. RESET & BASE STYLES ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100vw; height: 100%; }

body {
    font-family: 'Almarai', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 10px);
    -webkit-font-smoothing: antialiased;
}

[lang="fr"] body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; }
[dir="ltr"] body { text-align: left; }
[dir="rtl"] body { text-align: right; }

/* ==================== 3. SCROLLBAR STYLES ==================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(76, 175, 80, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(76, 175, 80, 0.4); }

/* ==================== 4. SIDEBAR STYLES ==================== */
.sidebar {
    position: fixed;
    top: 20px;
    bottom: 20px;
    width: var(--sidebar-width);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 25px 12px;
    z-index: var(--z-sidebar);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

[dir="rtl"] .sidebar { right: 20px; left: auto; }
[dir="ltr"] .sidebar { left: 20px; right: auto; }

/* UPDATE: Sidebar Header - Rectangular Logo Support */
.sidebar-header {
    padding: 0 0 15px 0; /* Removed side padding to allow full width logo */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    width: 100%; /* Spans the width of the sidebar content */
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Default min-height to prevent layout shift if image hasn't loaded */
    min-height: 60px; 
}

/* Removed old logo-placeholder, logo-text, logo-sub styles */

.nav-menu { list-style: none; flex: 1; }
.nav-link { display: flex; align-items: center; padding: 10px 14px; margin-bottom: 2px; border-radius: var(--radius-md); color: var(--text-gray); text-decoration: none; font-weight: 600; font-size: 13px; transition: all var(--transition-fast); }
[dir="rtl"] .nav-link i { margin-left: 10px; }
[dir="ltr"] .nav-link i { margin-right: 10px; }
.nav-link:hover { color: var(--color-primary); background: rgba(76, 175, 80, 0.06); }
.nav-link.active { background: var(--brand-gradient); color: var(--text-white); box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3); }
.nav-section-title { font-size: 10px; color: var(--text-gray); font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; padding: 12px 14px 6px; margin-top: 8px; border-top: 1px solid rgba(0, 0, 0, 0.04); }

.sidebar-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(0, 0, 0, 0.04); }
.social-icons { display: flex; justify-content: center; gap: 12px; margin-bottom: 15px; }
.social-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: rgba(76, 175, 80, 0.1); color: var(--color-primary); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all var(--transition-fast); }
.social-icon:hover { background: var(--brand-gradient); color: var(--text-white); transform: translateY(-2px); }

/* ==================== 5. MAIN CONTENT STYLES ==================== */
.main-content { min-height: 100vh; transition: margin 0.35s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; align-items: center; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; width: 100%; }
.header-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; }
.greeting h2 { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 2px; white-space: nowrap; }
.header-actions { display: flex; gap: 10px; align-items: center; }

.cta-btn { background: var(--brand-gradient); color: var(--text-white); border: none; padding: 10px 20px; border-radius: var(--radius-md); font-weight: 700; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-btn); transition: all var(--transition-fast); text-decoration: none; white-space: nowrap; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.action-btn { width: 44px; height: 44px; border-radius: var(--radius-md); border: none; background: var(--bg-card); box-shadow: var(--shadow-card); color: var(--text-gray); cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.action-btn:hover { color: var(--color-primary); }

.notification-wrapper { position: relative; }
.notification-badge { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%; border: 2px solid var(--text-white); }

.lang-switch { display: flex; background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.lang-btn { padding: 10px 16px; border: none; background: transparent; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text-gray); cursor: pointer; transition: all var(--transition-fast); }
.lang-btn.active { background: var(--brand-gradient); color: var(--text-white); }

/* ==================== 6. HERO SECTION & SLIDER ==================== */
.hero-section { position: relative; background-color: var(--color-primary-dark); border-radius: var(--radius-xl); margin-bottom: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-card); min-height: 280px; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }
.hero-shape { position: absolute; bottom: -30px; right: -30px; width: 150px; height: 150px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; z-index: 1; pointer-events: none; }
[dir="ltr"] .hero-shape { right: auto; left: -30px; }
.hero-content { position: relative; z-index: 2; padding: 130px 30px 30px; display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
[dir="ltr"] .hero-content { align-items: flex-end; text-align: right; }
.hero-title { font-size: 26px; font-weight: 900; color: var(--text-white); margin-bottom: 8px; line-height: 1.3; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.hero-subtitle { font-size: 11px; color: rgba(255, 255, 255, 1); margin-bottom: 25px; opacity: 0.9; }
.hero-btn { background: var(--text-white); color: var(--color-primary-dark); border: none; padding: 10px 20px; border-radius: 10px; font-weight: 800; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: all var(--transition-fast); margin-top: 15px; }
.hero-btn:hover { transform: translateY(-2px); background-color: var(--color-secondary); }

/* ==================== 7. CATEGORIES SECTION ==================== */
.categories-section { margin-bottom: 24px; width: 100%; }
.categories-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.categories-title { font-size: 16px; font-weight: 800; color: var(--text-dark); }

@media (min-width: 1201px) {
    .categories-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px 14px 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .categories-scroll::-webkit-scrollbar { display: none; }
    .category-card { flex-shrink: 0; width: 105px; background: var(--bg-card); border-radius: 15px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1); border: 1px solid rgba(255, 255, 255, 0.6); cursor: pointer; transition: all var(--transition-normal); scroll-snap-align: start; text-decoration: none; }
}

@media (max-width: 1200px) {
    .categories-scroll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px; overflow-x: visible; }
    .category-card { width: 100%; background: var(--bg-card); border-radius: var(--radius-md); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1); border: 1px solid rgba(255, 255, 255, 0.6); cursor: pointer; transition: all var(--transition-normal); text-decoration: none; }
}

.category-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2); }
.category-card.active { background: var(--brand-gradient); border-color: transparent; }
.category-card.active .category-icon { color: var(--text-white); background: rgba(255, 255, 255, 0.2); }
.category-card.active .category-name { color: var(--text-white); }
.category-icon { width: 38px; height: 38px; background: rgba(76, 175, 80, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--color-primary); transition: all var(--transition-normal); }
.category-name { font-size: 11px; font-weight: 700; color: var(--text-dark); text-align: center; line-height: 1.2; }

/* ==================== 8. ADS GRID & CARDS ==================== */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; width: 100%; }
.card { background: var(--bg-card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: var(--shadow-card); transition: all var(--transition-normal); position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-visual { height: 170px; position: relative; background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); overflow: hidden; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.card:hover .card-visual img { transform: scale(1.05); }
.card-badge { position: absolute; top: 10px; background: rgba(0, 0, 0, 0.7); color: var(--text-white); padding: 4px 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 700; backdrop-filter: blur(4px); z-index: 2; }
[dir="rtl"] .card-badge { right: 10px; }
[dir="ltr"] .card-badge { left: 10px; }

.card-content { padding: 16px; }
.card-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.card-description { font-size: 12px; color: var(--text-gray); margin-bottom: 12px; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; opacity: 0.8; }
.card-price { font-size: 18px; font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }

.card-info-row { display: flex; gap: 14px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.04); }
.card-info-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-gray); }
.card-info-item i { font-size: 14px; color: var(--color-primary); }

.card-footer { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.btn-connect { flex: 1; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: var(--text-white); border: none; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25); transition: all var(--transition-fast); }
.btn-call { background: var(--color-primary); }
.btn-share { flex: 0 0 auto; width: auto; padding: 8px 12px; background: var(--color-secondary); color: var(--text-dark); box-shadow: none; }
.btn-connect:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* ==================== 9. ABOUT & ACCOUNT CONTENT ==================== */
.account-content, .about-content { display: none; text-align: center; padding: 60px 20px; width: 100%; max-width: var(--container-max-width); }
.account-content.active, .about-content.active { display: block; }
.account-avatar, .about-icon { width: 90px; height: 90px; background: var(--brand-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-white); font-size: 36px; margin: 0 auto 16px; box-shadow: 0 8px 20px rgba(76, 175, 80, 0.25); }
.about-icon { width: 70px; height: 70px; font-size: 28px; }
.account-name, .about-title { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.account-email, .about-text { font-size: 14px; color: var(--text-gray); margin-bottom: 20px; line-height: 1.8; max-width: 600px; margin-left: auto; margin-right: auto; }
.account-actions { display: flex; justify-content: center; gap: 10px; }

/* ==================== 10. PARTNERS SECTION ==================== */
.partners-section { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, 0.05); overflow: hidden; width: 100%; }
.partners-title { font-size: 14px; color: var(--text-gray); font-weight: 700; text-align: center; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.partners-slider { display: flex; gap: 40px; align-items: center; animation: scroll 12s linear infinite; }
.partner-logo { height: 40px; opacity: 0.8; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); white-space: nowrap; background: var(--text-white); padding: 5px 15px; border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.partner-logo img { max-height: 100%; max-width: 100px; object-fit: contain; filter: grayscale(100%); transition: filter var(--transition-normal); }
.partner-logo:hover img { filter: grayscale(0%); }
.partner-logo:hover { opacity: 1; }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
[dir="rtl"] .partners-slider { animation-name: scroll-rtl; }
@keyframes scroll-rtl { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* ==================== 11. BOTTOM NAVIGATION ==================== */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06); z-index: var(--z-bottom-nav); border-top: 1px solid rgba(0, 0, 0, 0.04); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav-container { display: flex; justify-content: space-around; align-items: center; max-width: 600px; margin: 0 auto; height: var(--nav-height); position: relative; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); text-decoration: none; color: var(--text-gray); width: 20%; height: 100%; }
.bottom-nav-item.active { color: var(--color-primary); }
.bottom-nav-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 2px; }
.bottom-nav-label { font-size: 9px; font-weight: 700; letter-spacing: 0.2px; }
.bottom-nav-spacer { width: 20%; height: 100%; }
.bottom-nav-add-btn { width: 52px; height: 52px; background: var(--brand-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-white); font-size: 24px; box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); border: none; z-index: 10; cursor: pointer; transition: all var(--transition-fast); }
.bottom-nav-add-btn:hover { transform: translateX(-50%) scale(1.1); }

/* ==================== 12. MODAL & FORM STYLES ==================== */
.modal { position: fixed; inset: 0; background: var(--bg-overlay); backdrop-filter: blur(4px); z-index: var(--z-modal); display: none; justify-content: center; align-items: center; padding: 20px; opacity: 0; transition: opacity var(--transition-normal); }
.modal.active { display: flex; opacity: 1; }
.modal-content { background: var(--bg-card); width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto; border-radius: var(--radius-xl); padding: 30px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); position: relative; transform: scale(0.9); transition: transform var(--transition-normal); }
.modal.active .modal-content { transform: scale(1); }
.modal-header { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.modal-header h3 { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.modal-icon { width: 42px; height: 42px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-white); background: var(--brand-gradient); box-shadow: var(--shadow-btn); }
.btn-close { position: absolute; top: 15px; background: var(--bg-body); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; cursor: pointer; color: var(--text-gray); display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
[dir="rtl"] .btn-close { left: 15px; }
[dir="ltr"] .btn-close { right: 15px; }
.btn-close:hover { color: var(--text-dark); background: rgba(0, 0, 0, 0.1); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 12px; color: var(--text-gray); }
.form-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.05); background: var(--bg-body); color: var(--text-dark); font-family: inherit; font-size: 14px; transition: all var(--transition-fast); }
.form-input:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15); }
.form-input.error { border-color: var(--color-accent); }
.form-error { display: block; font-size: 11px; color: var(--color-accent); margin-top: 4px; min-height: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-submit { width: 100%; padding: 14px; background: var(--brand-gradient); color: var(--text-white); border: none; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 10px; transition: all var(--transition-fast); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }

.login-tabs { display: flex; margin-bottom: 20px; background: var(--bg-body); border-radius: 10px; padding: 3px; }
.login-tab { flex: 1; padding: 10px; border: none; background: none; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text-gray); cursor: pointer; border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.login-tab.active { background: var(--brand-gradient); color: var(--text-white); }

/* ==================== 13. IMAGE UPLOAD STYLES ==================== */
.image-upload-container { position: relative; width: 100%; }
.image-upload-area { border: 2px dashed rgba(76, 175, 80, 0.3); border-radius: var(--radius-md); padding: 20px; text-align: center; cursor: pointer; transition: all var(--transition-normal); background: rgba(76, 175, 80, 0.03); position: relative; overflow: hidden; }
.image-upload-area:hover { border-color: var(--color-primary); background: rgba(76, 175, 80, 0.08); }
.image-upload-area.has-image { padding: 0; border-style: solid; border-color: var(--color-primary); }
.image-upload-area input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-gray); }
.upload-placeholder i { font-size: 32px; color: var(--color-primary); }
.upload-placeholder span { font-size: 13px; font-weight: 600; }
.upload-hint { font-size: 11px; color: var(--text-gray); opacity: 0.7; }
.image-preview-container { position: relative; width: 100%; min-height: 150px; display: none; }
.image-preview-container.active { display: block; }
.image-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; }
.remove-image-btn { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(211, 47, 47, 0.9); color: var(--text-white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 3; transition: all var(--transition-fast); }
.remove-image-btn:hover { background: var(--color-accent); transform: scale(1.1); }
[dir="ltr"] .remove-image-btn { left: auto; right: 8px; }

/* ==================== 14. RESPONSIVE BREAKPOINTS ==================== */
@media (min-width: 1201px) {
    .main-content { padding: 30px 40px; }
    [dir="rtl"] .main-content { margin-right: calc(var(--sidebar-width) + 40px); margin-left: 0; }
    [dir="ltr"] .main-content { margin-left: calc(var(--sidebar-width) + 40px); margin-right: 0; }
    .header, .hero-section, .categories-section, .ads-grid, .partners-section, .account-content, .about-content, .about-mf-section { width: 100%; max-width: var(--container-max-width); }
    .ads-grid { grid-template-columns: repeat(3, 1fr); }
    .menu-toggler { display: none !important; }
}

@media (max-width: 1200px) {
    .sidebar { top: 0; bottom: 0; width: 280px; border-radius: 0; box-shadow: 0 0 40px rgba(0, 0, 0, 0.2); }
    [dir="rtl"] .sidebar { transform: translateX(100%); right: 0; }
    [dir="ltr"] .sidebar { transform: translateX(-100%); left: 0; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-right: 0 !important; margin-left: 0 !important; padding: 20px; }
    .hero-section { margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); border-radius: 0; margin-bottom: 20px; }
}

@media (max-width: 600px) {
    .ads-grid { grid-template-columns: 1fr; gap: 15px; }
    .hero-section { padding: 20px 16px; min-height: auto; gap: 12px; }
    .hero-title { font-size: 20px; margin-bottom: 4px; }
    .hero-subtitle { font-size: 12px; margin-bottom: 12px; }
    .hero-btn { padding: 10px 18px; font-size: 12px; }
    .header { gap: 10px; }
    .greeting h2 { font-size: 18px; }
    .cta-btn span { display: none; }
    .cta-btn { padding: 0; width: 44px; height: 44px; justify-content: center; border-radius: var(--radius-md); }
    .category-icon { width: 32px; height: 32px; font-size: 16px; }
    .category-name { font-size: 9px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .main-content { padding: 15px; }
    .hero-section { margin-left: -15px; margin-right: -15px; width: calc(100% + 30px); }
    .modal-content { padding: 20px; }
}

/* ==================== 15. ANIMATIONS ==================== */
.fade-in { animation: fadeIn 0.3s ease-in-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== 16. UTILITY CLASSES ==================== */
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-gray { color: var(--text-gray); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-gray); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; font-weight: 600; }
.loading { opacity: 0.6; pointer-events: none; }

@media print { .sidebar, .bottom-nav, .modal, .header-actions { display: none !important; } .main-content { margin: 0 !important; padding: 20px !important; } }/* ==================== ENHANCEMENT 7: COLOR UPDATE (DEEP FOREST GREEN) ==================== */
:root {
    /* Updating Primary Colors to Deep Forest Green */
    --color-primary: #004d40;
    --color-primary-dark: #00251a;
    
    /* Updating Dependent Colors */
    --brand-gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --text-dark: #004d40;
    --text-light: #4db6ac;
    
    /* Adjusted Shadows for Darker Green */
    --shadow-sm: 0 2px 8px rgba(0, 77, 64, 0.08);
    --shadow-card: 0 10px 30px rgba(0, 77, 64, 0.12);
    --shadow-hover: 0 20px 40px rgba(0, 77, 64, 0.25);
    --shadow-btn: 0 4px 15px rgba(0, 77, 64, 0.3);
}


/* ==================== ENHANCEMENT 4: CONDITIONAL FORM FIELDS ==================== */
.conditional-fields {
    background: rgba(0, 77, 64, 0.03);
    border: 1px solid rgba(0, 77, 64, 0.1);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

/* ==================== ENHANCEMENT 5: ROLE-BASED TOGGLE STYLES ==================== */
.role-toggle-group { margin-bottom: 20px; }
.role-switch-container { display: flex; gap: 10px; margin-top: 5px; }
.role-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid rgba(0, 77, 64, 0.2);
    background: white;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.role-btn i { font-size: 16px; }
.role-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.role-btn.active {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* ==================== ENHANCEMENT 6: MULTI-IMAGE GALLERY STYLES ==================== */
.multi-image-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.preview-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(211, 47, 47, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s;
}

.partner-logo { 
    flex: 0 0 150px; 
    height: 80px; 
    padding: 15px; 
    background: white; 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.preview-item:hover .remove-btn { opacity: 1; }

/* Hide old single preview container if present */
#imagePreviewContainer { display: none !important; }

/* Utility for hiding elements */
.hidden { display: none !important; }

/* ==================== 17. NEW ABOUT SECTION STYLES ==================== */
.about-mf-section {
    display: none;
    padding: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: var(--container-max-width);
    animation: fadeIn 0.5s ease-out;
}

.about-mf-section.active {
    display: block !important;
}

.about-mf-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Director Section */
.about-mf-director {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.director-mf-image-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 5px;
    background: var(--brand-gradient);
    box-shadow: var(--shadow-hover);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.director-mf-image {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
}

.director-mf-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 10px;
}

.director-mf-title {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 700;
}

/* Text Content - Language specific visibility */
.about-mf-text-ar, .about-mf-text-fr {
    display: none;
    margin-bottom: 30px;
}

[lang="ar"] .about-mf-text-ar { display: block; }
[lang="fr"] .about-mf-text-fr { display: block; }

.about-mf-section-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.about-mf-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

.about-mf-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: justify;
}

/* Disclaimer Box */
.disclaimer-mf-box {
    background: rgba(211, 47, 47, 0.05);
    border-right: 5px solid var(--color-accent);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-top: 40px;
}

[lang="fr"] .disclaimer-mf-box {
    border-right: none;
    border-left: 5px solid var(--color-accent);
}

.disclaimer-mf-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-mf-text {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Services List (FR specific) */
.services-mf-list {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 77, 64, 0.03);
    border-radius: var(--radius-md);
}

.services-mf-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.services-mf-list ul {
    list-style: none;
    padding: 0;
}

.services-mf-list li {
    position: relative;
    font-size: 15px;
    margin-bottom: 12px;
    padding-inline-start: 30px;
}

.services-mf-list li::before {
    content: '\f20c'; /* ph-check-circle variant */
    font-family: 'Phosphor';
    position: absolute;
    inset-inline-start: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Contact Section */
.about-mf-contact {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 40px;
    text-align: center;
}

.contact-mf-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-mf-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-mf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}

.contact-mf-item i {
    font-size: 22px;
    color: var(--color-primary);
}

.contact-mf-item:hover {
    transform: translateY(-5px);
    background: var(--brand-gradient);
    color: white;
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.contact-mf-item:hover i {
    color: white;
}

@media (max-width: 600px) {
    .about-mf-container { padding: 30px 20px; }
    .director-mf-image-wrapper { width: 150px; height: 150px; }
    .about-mf-section-title { font-size: 22px; }
    .contact-mf-items { flex-direction: column; width: 100%; }
    .contact-mf-item { width: 100%; justify-content: center; }
}

/* ==================== LAWYERS LIST SECTION - ELEGANT DESIGN ==================== */
.lawyers-section {
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0;
    animation: fadeIn 0.5s ease;
}

/* Header Container - Glass Morphism Design */
.lawyers-header-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: 
        0 4px 24px rgba(0, 77, 64, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.lawyers-header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #004d40 0%, 
        #00695c 25%, 
        #4db6ac 50%, 
        #00695c 75%, 
        #004d40 100%);
}

/* Title Box */
.lawyers-title-box {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.lawyers-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #004d40 0%, #00695c 50%, #004d40 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 
        0 8px 24px rgba(0, 77, 64, 0.25),
        0 0 0 4px rgba(0, 77, 64, 0.1);
    transition: transform 0.3s ease;
}

.lawyers-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.lawyers-icon i {
    font-size: 32px;
    color: #ffffff;
}

.lawyers-title-box .section-title {
    font-size: 26px;
    font-weight: 800;
    color: #004d40;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.lawyers-title-box .section-subtitle {
    font-size: 14px;
    color: #546e7a;
    font-weight: 500;
}

/* Search Box - Modern Design */
.search-box-lawyers {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 20px;
}

.search-box-lawyers > i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #78909c;
    pointer-events: none;
    transition: color 0.3s ease;
}

[dir="ltr"] .search-box-lawyers > i {
    right: auto;
    left: 18px;
}

.search-input {
    width: 100%;
    padding: 16px 50px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%) border-box;
    font-family: inherit;
    font-size: 15px;
    color: #37474f;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
    color: #90a4ae;
}

.search-input:focus {
    outline: none;
    border: 2px solid #004d40;
    background: white;
    box-shadow: 
        0 4px 20px rgba(0, 77, 64, 0.12),
        0 0 0 4px rgba(0, 77, 64, 0.08);
}

.search-input:focus + i,
.search-input:focus ~ i {
    color: #004d40;
}

.search-clear-btn {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.3);
}

[dir="ltr"] .search-clear-btn {
    left: auto;
    right: 14px;
}

.search-clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.4);
}

/* Stats Bar - Pill Design */
.lawyers-stats-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0;
    background: transparent;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, 
        rgba(0, 77, 64, 0.06) 0%, 
        rgba(0, 77, 64, 0.02) 100%);
    border-radius: 50px;
    font-size: 13px;
    color: #546e7a;
    font-weight: 600;
    border: 1px solid rgba(0, 77, 64, 0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: linear-gradient(135deg, 
        rgba(0, 77, 64, 0.1) 0%, 
        rgba(0, 77, 64, 0.05) 100%);
    transform: translateY(-2px);
}

.stat-item.total {
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.2);
}

.stat-item.total:hover {
    box-shadow: 0 6px 20px rgba(0, 77, 64, 0.3);
}

.stat-item i {
    font-size: 18px;
    color: inherit;
}

.stat-number {
    font-weight: 800;
    font-size: 16px;
}

/* Lawyers Grid - Elegant Layout */
.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding: 4px;
    padding-bottom: 140px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.lawyers-grid::-webkit-scrollbar {
    width: 6px;
}

.lawyers-grid::-webkit-scrollbar-track {
    background: rgba(0, 77, 64, 0.03);
    border-radius: 10px;
}

.lawyers-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #004d40 0%, #00695c 100%);
    border-radius: 10px;
}

.lawyers-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #003d33 0%, #004d40 100%);
}

/* Lawyer Card - Premium Design */
.lawyer-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.94) 100%);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(0, 77, 64, 0.04),
        0 4px 16px rgba(0, 77, 64, 0.02);
}

.lawyer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #004d40 0%, 
        #00695c 50%, 
        #4db6ac 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lawyer-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(
        circle at bottom right,
        rgba(0, 77, 64, 0.04) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.lawyer-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 12px 40px rgba(0, 77, 64, 0.12),
        0 4px 12px rgba(0, 77, 64, 0.08);
    border-color: rgba(0, 77, 64, 0.15);
}

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

/* Card Header */
.lawyer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 22px 16px;
    gap: 12px;
    background: linear-gradient(180deg, 
        rgba(0, 77, 64, 0.02) 0%, 
        transparent 100%);
    border-bottom: 1px solid rgba(0, 77, 64, 0.06);
}

.lawyer-name-box {
    flex: 1;
}

.lawyer-name {
    font-size: 17px;
    font-weight: 800;
    color: #263238;
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.lawyer-card:hover .lawyer-name {
    color: #004d40;
}

.lawyer-name-fr {
    font-size: 12px;
    color: #78909c;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    letter-spacing: 0.2px;
}

/* Phone Display - Elegant */
.lawyer-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #004d40;
    direction: ltr;
    text-align: right;
    justify-content: flex-end;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 77, 64, 0.03) 100%);
    border-top: 1px dashed rgba(0, 77, 64, 0.1);
    border-bottom: 1px dashed rgba(0, 77, 64, 0.1);
    transition: all 0.3s ease;
}

[dir="ltr"] .lawyer-phone {
    text-align: left;
    justify-content: flex-start;
    background: linear-gradient(270deg, 
        transparent 0%, 
        rgba(0, 77, 64, 0.03) 100%);
}

.lawyer-phone i {
    font-size: 18px;
    color: #004d40;
    flex-shrink: 0;
    padding: 6px;
    background: rgba(0, 77, 64, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lawyer-card:hover .lawyer-phone i {
    background: #004d40;
    color: white;
}

/* Contact Row - Button Design */
.lawyer-contact-row {
    display: flex;
    gap: 10px;
    padding: 16px 22px;
}

.lawyer-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    background: #f5f5f5;
    color: #607d8b;
    position: relative;
    overflow: hidden;
}

.lawyer-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 100%);
    pointer-events: none;
}

.lawyer-action-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.lawyer-action-btn:hover i {
    transform: scale(1.15);
}

/* Call Button */
.lawyer-action-btn.call-btn {
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
    color: #455a64;
    border-color: #b0bec5;
}

.lawyer-action-btn.call-btn:hover {
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
    color: white;
    border-color: #004d40;
    box-shadow: 0 4px 16px rgba(0, 77, 64, 0.3);
    transform: translateY(-2px);
}

/* WhatsApp Button */
.lawyer-action-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.lawyer-action-btn.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Empty State */
.empty-state-lawyers {
    text-align: center;
    padding: 80px 30px;
    grid-column: 1 / -1;
    color: #78909c;
}

.empty-state-lawyers i {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #004d40;
}

.empty-state-lawyers h3 {
    font-size: 20px;
    font-weight: 700;
    color: #455a64;
    margin-bottom: 8px;
}

.empty-state-lawyers p {
    font-size: 14px;
}

/* No Phone State */
.lawyer-no-phone {
    padding: 16px 22px;
    text-align: center;
    color: #90a4ae;
    font-size: 12px;
    font-style: italic;
    background: rgba(144, 164, 174, 0.05);
    border-radius: 0 0 20px 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .lawyers-header-container {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .lawyers-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .lawyers-icon i {
        font-size: 26px;
    }
    
    .lawyers-title-box .section-title {
        font-size: 22px;
    }
    
    .lawyers-stats-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stat-item {
        justify-content: center;
        border-radius: 12px;
    }
    
    .lawyers-grid {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 320px);
        gap: 16px;
        padding-bottom: 160px;
    }
    
    .lawyer-card-header {
        padding: 18px 18px 14px;
    }
    
    .lawyer-name {
        font-size: 16px;
    }
    
    .lawyer-phone {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .lawyer-contact-row {
        padding: 14px 18px;
    }
    
    .lawyer-action-btn {
        padding: 11px 14px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .lawyers-header-container {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .search-input {
        padding: 14px 45px;
        font-size: 14px;
        border-radius: 14px;
    }
    
    .lawyer-card {
        border-radius: 16px;
    }
    
    .lawyer-card::before {
        height: 4px;
    }
    
    .lawyer-card-header {
        padding: 16px 16px 12px;
    }
    
    .lawyer-name {
        font-size: 15px;
    }
    
    .lawyer-name-fr {
        font-size: 11px;
    }
    
    .lawyer-phone {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .lawyer-contact-row {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .lawyer-action-btn {
        padding: 10px 12px;
        font-size: 10px;
        border-radius: 10px;
    }
    
    .lawyer-action-btn i {
        font-size: 16px;
    }
}

/* ===== ANIMATION ENHANCEMENTS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lawyer-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger Animation for Cards */
.lawyer-card:nth-child(1) { animation-delay: 0.05s; }
.lawyer-card:nth-child(2) { animation-delay: 0.1s; }
.lawyer-card:nth-child(3) { animation-delay: 0.15s; }
.lawyer-card:nth-child(4) { animation-delay: 0.2s; }
.lawyer-card:nth-child(5) { animation-delay: 0.25s; }
.lawyer-card:nth-child(6) { animation-delay: 0.3s; }
.lawyer-card:nth-child(7) { animation-delay: 0.35s; }
.lawyer-card:nth-child(8) { animation-delay: 0.4s; }
.lawyer-card:nth-child(9) { animation-delay: 0.45s; }
.lawyer-card:nth-child(10) { animation-delay: 0.5s; }

/* Ripple Effect for Buttons */
.lawyer-action-btn {
    position: relative;
    overflow: hidden;
}

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

.lawyer-action-btn:active::after {
    width: 200px;
    height: 200px;
}

/* Loading Skeleton */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.lawyer-card.loading {
    background: linear-gradient(90deg, 
        #f5f5f5 25%, 
        #e8e8e8 50%, 
        #f5f5f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
