
.site-header {
    height: 100px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: var(--color-white);
    position: relative;
    width: 100%;
    z-index: 1000;
    opacity: 98%;
}

.site-header.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-spacer {
    display: block;
    height: 0;
    width: 100%;
    pointer-events: none;
}
/* ========== بخش احراز هویت (پروفشنال) ========== */
.auth-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* دکمه‌های ورود/ثبت‌نام */
.auth-buttons {
    display: flex;
    gap: 0.6rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.auth-btn i {
    font-size: 0.9rem;
}

.login-btn:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
    color: #1e40af;
}

.register-btn {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.register-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

/* منوی کاربر لاگین شده (drop-down) */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    padding: 0.3rem 0.8rem 0.3rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.user-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}
/* فقط در دسکتاپ نمایش داده شود */
.desktop-only {
    display: flex;
}
/* ========== بخش احراز هویت حرفه‌ای ========== */
.auth-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* فقط در دسکتاپ */
@media (min-width: 769px) {
    .desktop-only {
        display: flex;
    }
}
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* دکمه‌های ورود/ثبت‌نام */
.auth-buttons {
    display: flex;
    gap: 0.6rem;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}

.login-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}
.login-btn:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
    color: #1e40af;
}

.register-btn {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
}
.register-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}

/* dropdown کاربر */
.user-dropdown {
    position: relative;
}
.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    padding: 0.3rem 0.8rem 0.3rem 0.5rem;
    cursor: pointer;
    font-family: inherit;
}
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 150;
}
.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
}
.dropdown-item i {
    width: 20px;
    color: #3b82f6;
}
.dropdown-item:hover {
    background: #f1f5f9;
}
.logout-btn {
    color: #dc2626;
}
.logout-btn i {
    color: #dc2626;
}

/* ========== بخش موبایل (منوی همبرگر) ========== */
.auth-mobile {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}
.mobile-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-radius: 16px;
    background: #f8fafc;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
}
.mobile-user-details {
    flex: 1;
}
.mobile-user-name {
    font-weight: bold;
}
.mobile-user-email {
    font-size: 0.7rem;
    color: #64748b;
}
.mobile-logout {
    margin-top: 0.5rem;
}
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}
.user-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.85rem;
}

.user-btn i {
    color: #64748b;
    font-size: 0.7rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
}

.user-dropdown:hover .dropdown-menu,
.user-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: #334155;
    text-decoration: none;
    transition: 0.1s;
    font-size: 0.85rem;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: right;
}

.dropdown-item i {
    width: 20px;
    color: #3b82f6;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.logout-btn {
    color: #dc2626;
}

.logout-btn i {
    color: #dc2626;
}

/* موبایل: در منوی همبرگر این گزینه‌ها را هم اضافه می‌کنیم */
.mobile-nav .auth-mobile {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-radius: 16px;
    background: #f8fafc;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
}

.mobile-user-info .user-avatar {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

.mobile-user-details {
    flex: 1;
}

.mobile-user-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.mobile-user-email {
    font-size: 0.7rem;
    color: #64748b;
}

.mobile-logout {
    margin-top: 0.5rem;
}
/* ---------- مودال حرفه‌ای ---------- */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-container {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s;
    border-radius: 40px;
}

.tab-btn.active {
    background: #e0e7ff;
    color: #4338ca;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-body {
    padding: 1.8rem 1.5rem 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-family: inherit;
    transition: 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px #bfdbfe;
}

.btn-submit {
    background: #2563eb;
    color: white;
    border: none;
    width: 100%;
    padding: 0.7rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.form-errors {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    background: #fee2e2;
    padding: 0.5rem;
    border-radius: 12px;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

/* منوی دسکتاپ */
.desktop-menu {
    display: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-black-100);
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--color-brand);
}
.logo-isc span
{
   font-weight: bolder;
    font-size: 1.8rem;
}
/* ساب‌منوی دسکتاپ */
.has-submenu {
    position: relative;
}
.has-submenu .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    list-style: none;

    /* نمایش عمودی */
    display: block !important;
}

.has-submenu .submenu li {
    display: block;
    width: 100%;
}
.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}
.menu-link-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle.active .mobile-menu-icon {
    transform: rotate(180deg);
}
.menu-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.has-submenu:hover .menu-icon {
    transform: rotate(180deg);
}


.has-submenu .submenu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.has-submenu .submenu li:last-child a {
    border-bottom: none;
}

.has-submenu .submenu a:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--color-brand);
    padding-right: 1.5rem;
}
/* دکمه همبرگر */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.hamburger-menu:hover {
    background: #f3f4f6;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.2s;
}

/* منوی موبایل */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: white;
    z-index: 1200;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.mobile-sidebar.active {
    right: 0;
    visibility: visible;
    pointer-events: auto;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    min-height: 72px;
    box-sizing: border-box;
}

.mobile-sidebar-header img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #6b7280;
}

.mobile-sidebar-close:hover {
    background: #f3f4f6;
}

/* محتوای منوی موبایل */
.mobile-nav {
    padding: 1.25rem 1rem 1.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.mobile-nav ul {
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 0.5rem;
    width: 100%;
}

.mobile-nav a,
.mobile-submenu-toggle {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: #374151;
    font-size: 1rem;
    transition: color 0.2s;
    background: none;
    border: none;
    width: 100%;
    max-width: 100%;
    text-align: right;
    cursor: pointer;
    box-sizing: border-box;
    word-break: break-word;
}

.mobile-nav a:hover,
.mobile-submenu-toggle:hover {
    color: var(--color-brand);
}

.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu-toggle i {
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.mobile-submenu-toggle.active i {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    padding-right: 1rem;
    margin: 0.5rem 0;
    border-right: 2px solid #e5e7eb;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* اوورلی */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1190;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-menu-open {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* رسپانسیو */
@media (max-width: 767px) {
    .hamburger-menu {
        display: flex;
    }

    .desktop-menu,
    .desktop-only {
        display: none !important;
    }

    .header-container {
        width: 100%;
        max-width: 100%;
        padding-inline: 0.75rem;
        box-sizing: border-box;
    }

    .site-header {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .desktop-menu {
        display: block;
    }

    .hamburger-menu {
        display: none;
    }
}