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

/* ==================== GLOBAL CUSTOM DROPDOWN ==================== */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
    margin-bottom: 0; /* مارجین رو خود فرم کنترل میکنه */
}

/* مخفی کردن سلکت اصلی */
.custom-select-wrapper select {
    display: none !important;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f2b3d;
    background: #f9fdfb;
    border: 1.5px solid #cbdde0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select-trigger:hover {
    border-color: #1e6f5c;
    background: white;
}

.custom-select-trigger::after {
    content: "\f078"; /* آیکون Chevron Down از FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: #7a96a0;
    transition: transform 0.2s;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(180deg);
    color: #1e6f5c;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #1e6f5c;
    box-shadow: 0 0 0 4px rgba(30,111,92,0.1);
    background: white;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1.5px solid #cbdde0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #2c4b5a;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #eef2f6;
}

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

.custom-option:hover {
    background: #f4f9f7;
    color: #1e6f5c;
    padding-right: 20px;
}

.custom-option.selection {
    background: #e5f4ee;
    color: #1e6f5c;
    font-weight: 700;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, sans-serif;
    background: linear-gradient(145deg, #f6f9fc 0%, #eef2f6 100%);
    color: #1a2c3e;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    margin: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1 0 auto; /* این خط باعث می‌شود محتوا فضای خالی را پر کند و فوتر به پایین بچسبد */
}
/* ===================== NAVBAR ===================== */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-area h1 {
    margin: 0;
    display: flex;
    align-items: center;
}

.logo-area h1 a {
    display: block;
    text-decoration: none;
}

/* استایل تصویر لوگو در دسکتاپ */
.site-logo {
    max-height: 45px; /* ارتفاع مناسب برای هدر */
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.05); /* افکت زیبا هنگام هاور */
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center; /* این خط برای تراز شدن دکمه ورود اضافه شد */
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1f3e48;
    transition: 0.2s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #1e6f5c;
    border-bottom: 2px solid #1e6f5c;
    padding-bottom: 4px;
}

/* دکمه ورود در هدر */
.login-btn {
    background: #1e6f5c !important;
    color: #ffffff !important;
    padding: 8px 22px !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important; /* حذف خط زیر متن */
    border-bottom: none !important; /* حذف خط پایین که از منوها ارث می‌برد */
    transition: all 0.2s ease !important;
    display: inline-block;
    box-shadow: 0 4px 10px -4px rgba(30,111,92,0.3);
}

.login-btn:hover {
    background: #0e5444 !important;
    transform: scale(0.96) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ===================== FOOTER ===================== */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #cfe3dc;
    margin-top: auto; /* برای چسبیدن به پایین در صفحات کوتاه */
    color: #2f6b5e;
}

footer p { margin-bottom: 8px; }
footer p:last-child { font-size: 0.8rem; }

/* ===================== TOAST ===================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f3e48;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    opacity: 0;
    z-index: 1000;
    max-width: 90vw;
    text-align: center;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e6f5c, #2a8a72);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(30, 111, 92, 0.55);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(30, 111, 92, 0.7);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px -6px rgba(30, 111, 92, 0.55);
}

.btn-cta i { font-size: 0.9rem; }

/* ==================== USER NAV MENU ==================== */
.user-nav-menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f3f9f6; /* رنگ پس زمینه ملایم هماهنگ با تم */
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #c9e1d9;
    white-space: nowrap; /* جلوگیری از شکستن متن */
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #0f2b3d;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.user-profile-link:hover {
    color: #1e6f5c;
}

.user-profile-link i {
    color: #1e6f5c;
    font-size: 1.3rem;
}

/* اعداد انگلیسی در متن راست به چپ به هم نریزند */
.user-identifier {
    letter-spacing: 0.5px;
}

.logout-form {
    margin: 0;
    display: flex;
    align-items: center;
    padding-right: 8px;
    border-right: 1px solid #d0e5dd; /* خط جداکننده بین شماره و دکمه خروج */
}

.logout-btn {
    background: transparent;
    border: none;
    color: #d9534f; /* رنگ قرمز برای خروج */
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.logout-btn:hover {
    background: rgba(217, 83, 79, 0.1);
    color: #c9302c;
}

.logout-btn i {
    font-size: 1rem;
}

/* ==================== USER PILL MENU ==================== */
/* ==================== USER PILL MENU ==================== */
.user-pill-menu {
    display: inline-flex !important;
    flex-direction: row !important; /* اجبار به قرارگیری افقی */
    align-items: center !important;
    background: #f3f9f6;
    border: 1px solid #c9e1d9;
    border-radius: 50px;
    padding: 4px 12px 4px 6px;
    gap: 4px;
    white-space: nowrap; /* جلوگیری از شکستن خط */
    transition: box-shadow 0.2s;
}

.user-pill-menu:hover {
    box-shadow: 0 4px 10px -4px rgba(30,111,92,0.15);
}

/* بخش نام و آیکون کاربر */
.user-pill-profile {
    display: flex !important;
    flex-direction: row !important; /* اجبار آیکون و متن به قرارگیری افقی */
    align-items: center !important; /* هم‌ترازی عمودی دقیق */
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    border-bottom: none !important;
    color: #0f2b3d;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
}

.user-pill-profile:hover {
    color: #1e6f5c;
    text-decoration: none !important;
    border-bottom: none !important;
}

.user-pill-profile i {
    color: #1e6f5c;
    font-size: 1.5rem;
    display: inline-block !important; /* جلوگیری از رفتار بلاک */
    line-height: 1;
    margin: 0 !important; /* حذف هرگونه مارجین اضافه */
}

.user-pill-text {
    letter-spacing: 0.5px;
    font-family: inherit;
    line-height: 1;
    display: inline-block !important;
    margin: 0 !important;
    
    /* این دو خط متن رو می‌ندازه پایین تا با آیکون تراز بشه */
    position: relative;
    top: 2px; 
}

/* خط جداکننده عمودی */
.user-pill-divider {
    width: 1px;
    height: 18px;
    background: #c9e1d9;
    margin: 0 2px;
}

/* فرم و دکمه خروج */
.user-pill-logout-form {
    margin: 0;
    display: flex !important;
    align-items: center !important;
}

.user-pill-logout-btn {
    background: transparent;
    border: none;
    color: #d9534f;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.user-pill-logout-btn:hover {
    background: rgba(217, 83, 79, 0.1);
    color: #c9302c;
}

.user-pill-logout-btn i {
    font-size: 1.1rem;
    transform: scaleX(-1);
}

/* ==================== SYSTEM MESSAGES ==================== */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1000;
}

.alert-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    animation: slideDown 0.4s ease-out;
}

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

.alert-message i {
    font-size: 1.3rem;
}

.alert-message .close-msg {
    margin-right: auto; /* هدایت دکمه بستن به سمت چپ */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    transition: 0.2s;
}

.alert-message .close-msg:hover {
    opacity: 1;
}

/* رنگ‌بندی بر اساس نوع پیام */
.alert-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-right: 5px solid #2e7d32;
}

.alert-message.warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
    border-right: 5px solid #e65100;
}

.alert-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-right: 5px solid #c62828;
}

.alert-message.info, .alert-message.debug {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    border-right: 5px solid #1565c0;
}


/* ===================== RESPONSIVE NAV ===================== */
@media (max-width: 780px) {
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.88rem; }
    .site-logo {
        max-height: 35px; 
    }
}


/* ==================== NEW NAVBAR LAYOUT ==================== */
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* شماره تماس */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e6f5c;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.2s;
}

.nav-phone:hover {
    color: #0e5444;
}

.nav-phone i {
    font-size: 0.85rem;
}

/* خط جداکننده بین شماره و دکمه ورود */
.nav-divider {
    width: 1px;
    height: 24px;
    background: #cbdde0;
}

/* ==================== DROPDOWN MENU ==================== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
    border: 1px solid #eef2f6;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    margin-top: 10px;
}

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

.nav-dropdown .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #2c4b5a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    border-bottom: none !important;
}

.nav-dropdown .dropdown-item:hover {
    background: #f4f9f7;
    color: #1e6f5c;
    padding-right: 24px; /* افکت حرکت ملایم */
}

/* اصلاح استایل لینک‌های اصلی هدر برای هم‌ترازی */
.nav-links a {
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* رسپانسیو برای موبایل (اختیاری برای آینده) */
@media (max-width: 900px) {
    .nav-phone, .nav-divider {
        display: none;
    }
}


/* ==================== SITE FOOTER (LIGHT THEME) ==================== */
.site-footer {
    background-color: #ffffff; /* پس‌زمینه سفید هماهنگ با هدر */
    border-top: 1px solid #eef2f6;
    padding: 60px 0 20px;
    margin-top: auto;
    color: #4a6f7c;
    /* تراز کردن کل محتوای فوتر به سمت راست */
    text-align: right; 
    direction: rtl;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* لوگو و توضیحات */
.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e6f5c; /* رنگ سبز برند */
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0f2b3d, #1e6f5c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #7a96a0;
    padding-left: 20px; /* کمی فاصله از سمت چپ برای خوانایی بهتر */
}

/* شبکه‌های اجتماعی */
.footer-socials {
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* در RTL یعنی سمت راست */
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4f9f7;
    color: #1e6f5c;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-socials a:hover {
    background: #1e6f5c;
    color: white;
    transform: translateY(-3px);
}

/* عناوین ستون‌ها */
.footer-title {
    color: #0f2b3d;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* خط زیر عنوان در سمت راست */
    width: 30px;
    height: 3px;
    background: #1e6f5c;
    border-radius: 3px;
}

/* لینک‌ها */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #7a96a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: #1e6f5c;
    transform: translateX(-5px); /* حرکت به چپ در RTL */
}

/* اطلاعات تماس (تراز شده در سمت راست) */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* تراز به سمت راست */
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7a96a0;
}

.footer-contact i {
    color: #1e6f5c;
    font-size: 1.1rem;
    width: 20px; /* ثابت کردن عرض آیکون برای تراز دقیق متن‌ها */
    text-align: center;
}

/* پایین فوتر (کپی‌رایت) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    font-size: 0.85rem;
    color: #a2bcc4;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #1e6f5c;
    text-decoration: none;
    font-weight: 600;
}

/* رسپانسیو */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* ==================== GLOBAL PRIMARY BUTTON ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1e6f5c;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -8px rgba(30,111,92,0.6);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0e5444;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -8px rgba(30,111,92,0.8);
    color: white !important;
    text-decoration: none !important;
}


/* ==================== MOBILE MENU STYLES ==================== */

/* کانتینر لوگو و همبرگری */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px; /* فاصله بین همبرگری و لوگو */
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #1e6f5c;
    cursor: pointer;
    padding: 5px;
}

/* ==================== MOBILE MENU STYLES ==================== */
@media (max-width: 992px) {
    /* نمایش دکمه همبرگری */
    .mobile-menu-btn {
        display: block;
    }

    /* پنهان کردن شماره تماس */
    .nav-phone, .nav-divider {
        display: none;
    }

    /* تغییر چیدمان منوی اصلی به حالت کشویی */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        /* این پدینگ باعث می‌شود منوها از لبه‌های راست و چپ فاصله بگیرند */
        padding: 20px 20px; 
        box-sizing: border-box; /* جلوگیری از بیرون زدن منو از صفحه */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eef2f6;
        gap: 10px;
        z-index: 999;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    /* اصلاح چیدمان لینک‌ها در موبایل (راست‌چین) */
    .nav-links a {
        width: 100%;
        text-align: right;
        /* پدینگ راست و چپ برای خود لینک‌ها */
        padding: 12px 15px; 
        border-bottom: 1px solid #f4f9f7;
        font-size: 1rem;
        box-sizing: border-box;
        border-radius: 8px;
        transition: 0.2s;
    }
    
    .nav-links a:hover {
        background: #f4f9f7;
    }

    /* ==================== FIX HELP DROPDOWN IN MOBILE ==================== */
    .nav-dropdown {
        width: 100%;
    }

    /* تراز کردن متن راهنما به سمت راست */
    .nav-dropdown .dropdown-toggle {
        display: flex;
        justify-content: space-between; /* فلش به سمت چپ، متن سمت راست */
        align-items: center;
        width: 100%;
        padding: 12px 15px; /* همراستا با بقیه لینک‌ها */
    }

    /* مخفی کردن منوی کشویی در حالت عادی */
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-right: 15px; /* تودرفتگی برای زیرمنو */
        padding-left: 0;
        background: #f8fbfa;
        border-radius: 8px;
        display: none; /* مخفی */
        margin-top: 5px;
    }

    /* نمایش منوی کشویی وقتی کلاس open به آن اضافه شد */
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: none; 
    }
    
    .nav-dropdown.open:hover .dropdown-menu {
        display: block; 
    }
}


/* ==================== MOBILE MENU STYLES ==================== */

/* بخش پروفایل داخل منوی موبایل - در دسکتاپ مخفی است */
.mobile-only-profile {
    display: none;
}

@media (max-width: 992px) {
    /* نمایش دکمه همبرگری */
    .mobile-menu-btn {
        display: block;
    }

    /* مخفی کردن بخش چپ (شماره و پروفایل) در موبایل */
    .nav-left-actions {
        display: none !important; 
    }

    /* تغییر چیدمان منوی اصلی به حالت کشویی */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px; 
        box-sizing: border-box;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eef2f6;
        gap: 10px;
        z-index: 999;
        max-height: calc(100vh - 70px); /* جلوگیری از بیرون زدن در موبایل‌های کوچک */
        overflow-y: auto;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    /* اصلاح چیدمان لینک‌ها در موبایل */
    .nav-links a {
        width: 100%;
        text-align: right;
        padding: 12px 15px; 
        border-bottom: 1px solid #f4f9f7;
        font-size: 1rem;
        box-sizing: border-box;
        border-radius: 8px;
        transition: 0.2s;
    }
    
    .nav-links a:hover {
        background: #f4f9f7;
    }

    /* نمایش بخش پروفایل داخل منو در موبایل */
    .mobile-only-profile {
        display: block;
        width: 100%;
    }

    /* استایل دکمه پروفایل در منوی موبایل */
    .nav-links a.mobile-profile-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* وسط‌چین کردن متن */
        gap: 8px;
        padding: 12px 15px !important;
        background: #e5f4ee !important;
        color: #1e6f5c !important;
        border-radius: 10px !important;
        border-bottom: none !important; /* حذف خط زیر */
        margin-bottom: 10px;
        font-weight: 700 !important;
        font-size: 0.95rem !important;
    }

    /* استایل دکمه خروج در منوی موبایل */
    .mobile-logout-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* وسط‌چین کردن متن */
        gap: 8px;
        width: 100%;
        padding: 12px 15px !important;
        background: #ffebee !important;
        color: #d9534f !important;
        border: none !important;
        border-radius: 10px !important;
        font-family: inherit;
        font-weight: 700 !important;
        font-size: 0.95rem !important;
        cursor: pointer;
    }

    /* استایل دکمه ورود در منوی موبایل */
    .nav-links a.mobile-login-btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        color: #ffffff !important; /* متن سفید */
        background: #1e6f5c !important; /* پس‌زمینه سبز */
        text-align: center !important; /* وسط‌چین */
        border-bottom: none !important; /* حذف خط زیر */
        font-weight: 700 !important;
        border-radius: 12px !important;
        margin-top: 15px;
        padding: 12px !important;
    }

    .nav-links a.mobile-login-btn:hover {
        background: #0e5444 !important;
        color: #ffffff !important;
    }

    /* ==================== FIX HELP DROPDOWN IN MOBILE ==================== */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 15px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-right: 15px;
        padding-left: 0;
        background: #f8fbfa;
        border-radius: 8px;
        display: none;
        margin-top: 5px;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: none; 
    }
    
    .nav-dropdown.open:hover .dropdown-menu {
        display: block; 
    }
}


/* ==================== MOBILE NAV OVERLAY ==================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 43, 61, 0.6); /* رنگ تیره با شفافیت */
    backdrop-filter: blur(3px);
    z-index: 90; /* <--- این عدد باید از z-index هدر (100) کمتر باشد */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}