    :root {
        --primary: #a62626;
        --primary-dark: #8a1f1f;
        --primary-light: #d32f2f;
        --secondary: #f8f9fa;
        --text: #333333;
        --text-light: #666666;
        --text-lighter: #999999;
        --border: #e0e0e0;
        --background: #ffffff;
        --header-height: 70px;
    }
    
    * {
        box-sizing: border-box;
        font-family: 'Vazirmatn', sans-serif;
    }
    
    body {
        background-color: #fcfcfc;
        color: var(--text);
        padding-top: var(--header-height); /* جلوگیری از رفتن محتوا زیر هدر */
    }
    
    /* هدر اصلی */
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-height);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 1px 10px rgba(0,0,0,0.05);
        z-index: 1000;
        border-bottom: 1px solid var(--border);
        transition: transform 0.3s ease;
    }
    
    .header-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* لوگو */
    .logo {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    
    .logo img {
        height: 45px;
        width: auto;
        transition: transform 0.2s;
    }
    
    .logo:hover img { transform: scale(1.05); }
    
    /* ناوبری */
    .nav-links {
        display: flex;
        align-items: center;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-links a {
        text-decoration: none;
        color: var(--text-light);
        font-weight: 500;
        font-size: 15px;
        transition: color 0.2s;
        position: relative;
    }
    
    .nav-links a:hover, .nav-links a.active {
        color: var(--primary);
    }
    
    /* اکشن‌های سمت چپ */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    /* دکمه ثبت آگهی */
    .post-ad-btn {
        background-color: var(--primary);
        color: white;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 10px rgba(166, 38, 38, 0.2);
    }
    
    .post-ad-btn:hover {
        background-color: var(--primary-dark);
        color: white;
        transform: translateY(-2px);
    }
    
    /* دکمه شهر */
    .city-btn {
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text);
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        transition: all 0.2s;
    }
    
    .city-btn:hover {
        border-color: var(--text-light);
        background-color: #f9f9f9;
    }
    
    .city-btn i { color: var(--text-light); }
    
    /* منوی موبایل */
    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text);
        padding: 5px;
    }
    
    /* مدال شهر */
    .city-modal {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 2000;
        justify-content: center;
        align-items: flex-start;
        padding-top: 60px;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .city-modal.show {
        display: flex;
        opacity: 1;
    }
    
    .modal-content {
        background: white;
        width: 100%;
        max-width: 600px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        transform: translateY(-20px);
        transition: transform 0.3s;
    }
    
    .city-modal.show .modal-content { transform: translateY(0); }
    
    .modal-header {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .close-modal {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-light);
    }
    
    .modal-body {
        padding: 20px;
        overflow-y: auto;
    }
    
    .city-search input {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        margin-bottom: 20px;
        font-family: inherit;
    }
    
    .province-item h4 {
        font-size: 15px;
        color: var(--text-light);
        margin: 15px 0 10px;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }
    
    .subcity-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .subcity-btn {
        border: 1px solid var(--border);
        background: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 13px;
        cursor: pointer;
        transition: 0.2s;
        color: var(--text);
    }
    
    .subcity-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    
    /* ریسپانسیو */
    @media (max-width: 992px) {
        .nav-links {
            position: fixed;
            top: var(--header-height);
            right: -280px;
            bottom: 0;
            width: 280px;
            background: white;
            flex-direction: column;
            padding: 20px;
            box-shadow: -5px 0 15px rgba(0,0,0,0.05);
            transition: right 0.3s;
            align-items: flex-start;
        }
        .nav-links.active {
            right: 0;
            z-index: 99999999999;
            height: 800px;
          }
  
        .mobile-menu-btn { display: block; }
        .city-btn span { display: none; } /* فقط آیکون شهر در تبلت */
    }
    
    @media (max-width: 576px) {
        .post-ad-btn { display: none; }
        .post-ad-btn { padding: 10px; border-radius: 50%; width: 42px; height: 42px; justify-content: center; }
        .post-ad-btn i { margin: 0; font-size: 18px; }
        .city-btn { padding: 8px; }
        .modal-content { height: 100%; max-height: 100%; border-radius: 0; margin: 0; }
        .city-modal { padding: 0; }
    }
    
    .mobile-bottom-nav{
        display:none;
    }
    
    footer {
      display: none;
    }
    
    
    /* استایل فوق مدرن iOS Prompt */
.ios-prompt-modern {
    position: fixed;
    bottom: 85px; /* کمی بالاتر از نوار منو */
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 380px;
    z-index: 100000;
    background: rgba(255, 255, 255, 0.85);
    /* افکت شیشه ای اپل */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    animation: bounceUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
}

.ios-prompt-header {
    display: flex;
    align-items: center;
}

.ios-app-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ios-prompt-title {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ios-close-btn {
    background: #f0f0f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-num {
    background: #e9ecef;
    color: #555;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
}

.ios-arrow-down {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.9);
}

@keyframes bounceUp {
    0% { bottom: -50px; opacity: 0; }
    70% { bottom: 95px; opacity: 1; }
    100% { bottom: 85px; opacity: 1; }
}


/* استایل پیغام آپدیت (Toast) */
.pwa-update-toast {
    position: fixed;
    bottom: 85px; /* کمی بالاتر از نوار منوی پایین */
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 350px;
    z-index: 100000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    direction: rtl;
    animation: slideUpToast 0.5s ease-out forwards;
}

.pwa-update-content {
    display: flex;
    align-items: center;
}

.pwa-update-icon {
    font-size: 20px;
    margin-left: 12px;
    color: #4caf50; /* سبز رنگ برای حس آپدیت */
    animation: rotateIcon 2s linear infinite;
}

.pwa-update-btn {
    background: #a62626; /* قرمز برند شما */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.pwa-update-btn:active {
    background: #8a1f1f;
    transform: scale(0.95);
}

@keyframes slideUpToast {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 85px; opacity: 1; }
}

@keyframes rotateIcon {
    100% { transform: rotate(-360deg); }
}

/* استایل اسپلش اسکرین */
#app-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #a62626; /* رنگ پس‌زمینه (قرمز برند شما) */
    z-index: 9999999; /* بالاترین لایه ممکن */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.splash-content {
    text-align: center;
    color: #fff;
    animation: pulseLogo 2s infinite ease-in-out;
}

.splash-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #fff; /* اگر لوگوی شما شفاف است، بکگراند سفید بدهید */
    padding: 10px;
}

.splash-title {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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


/* شبکه‌های اجتماعی در هدر - دسکتاپ */
.social-links-desktop {
    margin-right: 10px;
}

.social-icons-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon:hover {
    background-color: #a62626;
    color: white;
    transform: translateY(-2px);
}

/* بخش موبایل شبکه‌های اجتماعی */
.mobile-social-section {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    padding: 15px 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.mobile-social-section.active {
    transform: translateY(0);
}

.mobile-social-header {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
    position: relative;
}

.mobile-social-header:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #a62626;
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mobile-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    transition: all 0.3s ease;
    font-size: 22px;
}

.mobile-social-icon:hover {
    background-color: #a62626;
    color: white;
    transform: scale(1.1);
}

/* تنظیمات منوی موبایل */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px 0 100px 0; /* پدینگ پایین برای فضای شبکه‌های اجتماعی */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        display: block;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li a {
        display: block;
        padding: 12px 20px;
    }

    .social-links-desktop {
        display: none; /* مخفی کردن شبکه‌های اجتماعی دسکتاپ در موبایل */
    }

    /* نمایش بخش موبایل */
    .mobile-social-section {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-social-section {
        display: none !important; /* مخفی کردن بخش موبایل در دسکتاپ */
    }
}
