/* دسکتاپ: هاور پایدار با پل ارتباطی نامرئی مستقل از کلاس وردپرس */
                .academy-desktop-menu li {
                        position: relative;
                }
                .academy-desktop-menu li > ul {
                        visibility: hidden;
                        opacity: 0;
                        pointer-events: none;
                        transform: translateY(10px);
                        transition: all 0.2s ease-in-out;
                        position: absolute;
                        top: 100%;
                        right: 0;
                        min-width: 220px;
                        background: #ffffff;
                        border-radius: 1rem;
                        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
                        border: 1px solid rgb(241 245 249);
                        padding: 0.5rem;
                        z-index: 100;
                }
                /* منوهای سطح سوم به بعد */
                .academy-desktop-menu li > ul ul {
                        top: 0;
                        right: 100%;
                        margin-right: 0.5rem;
                }
                /* پل نامرئی (Hover Bridge) برای جلوگیری از بسته شدن ناگهانی موس */
                .academy-desktop-menu li > ul::before {
                        content: '';
                        position: absolute;
                        top: -20px;
                        bottom: -20px;
                        left: -20px;
                        right: -20px;
                        z-index: -1;
                        background: transparent;
                }
                .academy-desktop-menu li:hover > ul {
                        visibility: visible;
                        opacity: 1;
                        pointer-events: auto;
                        transform: translateY(0);
                }

                /* موبایل: مخفی بودن قطعی زیرمنوها به صورت پیش‌فرض (مستقل از کلاس‌های Walker) */
                @media (max-width: 1023px) {
                        #mobileMenu ul ul { display: none; }
                        #academy-mobile-primary-menu > li > a {
                                display: flex;
                                align-items: center;
                                min-height: 3.25rem;
                                border: 1px solid transparent;
                                border-radius: 0.875rem;
                                padding: 0.75rem 1rem;
                                font-size: 0.8125rem;
                                font-weight: 700;
                                color: #334155;
                                transition: background-color .2s ease, color .2s ease, border-color .2s ease;
                        }
                        #academy-mobile-primary-menu > li > a:hover,
                        #academy-mobile-primary-menu > li.current-menu-item > a,
                        #academy-mobile-primary-menu > li.current-menu-ancestor > a {
                                border-color: rgb(209 250 229);
                                background: rgb(240 253 244);
                                color: #047857;
                        }
                }

/* ==========================================================================
   بند ۴۵ (سری ۲، بندهای ۵ و ۶.۸) — منوی موبایل حرفه‌ای (amm-*) +
   پنل شناور «پکیج‌های فعال» (هم‌الگوی پنل اعلان‌ها)
   ========================================================================== */

/* ---------- نوار بالا ---------- */
.amm-top {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: 14px 4px 14px 0;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 14px;
}
.amm-brand {
        display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0;
}
.amm-brand__logo {
        position: relative; z-index: 0; flex: 0 0 auto;
        width: 42px; height: 42px; overflow: hidden; border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        /* بند ۴۶ (آیتم ۱ مالک): رنگ تم به سبزِ سایت برگشت — از متغیرهای تم
           (--tw-rooyesh-*) خوانده می‌شود تا با Personalize رنگ سایت هم‌گام بماند. */
        background: linear-gradient(135deg, var(--tw-rooyesh-600, #059669), var(--tw-rooyesh-500, #10b981));
        color: #fff; font-size: 19px; box-shadow: 0 4px 12px -4px rgba(5, 150, 105, .45);
}
.amm-brand__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.amm-brand__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.amm-brand__name { font-size: 14px; font-weight: 900; color: #0f172a; letter-spacing: -.01em; }
.amm-brand__desc {
        margin-top: 2px; font-size: 8.5px; font-weight: 800; text-transform: uppercase;
        letter-spacing: .14em; color: #b45309;
}
.amm-top__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.amm-iconbtn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border-radius: 12px; border: 1px solid #e2e8f0;
        background: #f8fafc; color: #475569; font-size: 15px; cursor: pointer;
        transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.amm-iconbtn:hover, .amm-iconbtn:focus-visible {
        background: var(--tw-rooyesh-50, #ecfdf5); color: var(--tw-rooyesh-600, #059669); border-color: var(--tw-rooyesh-200, #a7f3d0); outline: none;
}

/* ---------- جستجوی بازشونده ---------- */
.amm-search { margin-bottom: 14px; }
.amm-search__form { position: relative; display: flex; align-items: center; }
.amm-search__input {
        width: 100%; height: 46px; border: 1px solid #e2e8f0; border-radius: 12px;
        background: #f8fafc; padding: 0 16px 0 48px;
        font-family: inherit; font-size: 13px; font-weight: 600; color: #334155;
        outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.amm-search__input:focus { border-color: var(--tw-rooyesh-300, #6ee7b7); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.amm-search__btn {
        position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
        width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent;
        color: #94a3b8; font-size: 13px; cursor: pointer;
}
.amm-search__btn:hover { color: var(--tw-rooyesh-600, #059669); }

/* ---------- تب‌ها ---------- */
.amm-tabs {
        display: flex; gap: 6px; background: #f1f5f9; border-radius: 14px; padding: 4px;
        margin-bottom: 14px;
}
.amm-tab {
        flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
        border: 0; border-radius: 11px; padding: 10px 8px;
        background: transparent; color: #64748b;
        font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
        transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.amm-tab.is-active {
        background: #fff; color: var(--tw-rooyesh-600, #059669);
        box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .18);
}
.amm-tab i { font-size: 12px; }

/* ---------- پنل‌های تب ---------- */
.amm-panel { flex: 1 1 auto; }
.amm-panel[hidden] { display: none; }

/* بند ۴۶ (آیتم ۲ مالک): نوار «دسترسی‌های فعال» (amm-pkgs-strip) از تب «فهرست»
   حذف شد — CSS آن هم برداشته شد؛ پنل شناور «پکیج‌های فعال» (amm-pkgsheet) سرجایش است. */

/* فهرست منو */
.amm-menu { display: flex; flex-direction: column; gap: 4px; }

/* ---------- تب حساب کاربری — فهرست مینیمال ---------- */
.amm-account { display: flex; flex-direction: column; }
.amm-account__list { display: flex; flex-direction: column; gap: 3px; }
.amm-account__item {
        display: flex; align-items: center; gap: 12px; text-decoration: none;
        padding: 12px 6px; border-radius: 12px; border: 0; background: transparent;
        font-family: inherit; font-size: 13.5px; font-weight: 700; color: #1e293b;
        cursor: pointer; text-align: right; width: 100%;
        transition: background .15s ease;
}
.amm-account__item:hover, .amm-account__item:focus-visible { background: #f8fafc; outline: none; }
.amm-account__item > i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: var(--tw-rooyesh-50, #ecfdf5); color: var(--tw-rooyesh-600, #059669); }
.amm-account__label { flex: 1; min-width: 0; }
.amm-account__chev { font-size: 11px; color: #94a3b8; transition: transform .2s ease; }
.amm-account__notif { border-bottom: 1px solid #f1f5f9; margin-bottom: 6px; padding-bottom: 6px; }

/* بج دایره‌ای اعلان‌ها (رنگ تم) */
.amm-notif-badge {
        flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 999px; background: var(--tw-rooyesh-600, #059669); color: #fff;
        font-size: 10.5px; font-weight: 900; line-height: 1;
        box-shadow: 0 0 0 3px rgba(5, 150, 105, .15);
}
.amm-notif-badge.hidden { display: none; }

/* بج اعلان‌ها داخل تب «حساب کاربری» منوی موبایل — از position: absolute
 * (بج گوشه‌ای افزونه) به جریان عادی: دقیقاً روبه‌روی عنوان «اعلان‌ها» و کنار
 * فلش بازشو (chevron)، بدون پوشیدن عنوان. */
.amm-account__item .amm-notif-badge.acme-notif-badge {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        margin-inline-start: auto;
        margin-inline-end: 6px;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
}

/* پنل اعلان‌ها داخل تب حساب */
.amm-notifpanel {
        background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
        overflow: hidden; margin-top: 4px;
}
.amm-notifpanel__head {
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
        padding: 10px 12px; border-bottom: 1px solid #e2e8f0; background: #f1f5f9;
}
.amm-notifpanel__t { font-size: 11.5px; font-weight: 900; color: #334155; }
.amm-notifpanel__all { border: 0; background: transparent; color: var(--tw-rooyesh-600, #059669); font-family: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; padding: 0; }
.amm-notifpanel__list { max-height: 46vh; overflow-y: auto; }

/* پیل شمارنده */
.amm-pill {
        flex: 0 0 auto; min-width: 20px; padding: 2px 8px; border-radius: 999px;
        font-size: 10.5px; font-weight: 900; line-height: 1.5; text-align: center;
}
.amm-pill--amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.amm-pill--green { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

/* ---------- نوار پایین ---------- */
.amm-bottom {
        position: sticky; bottom: 0; z-index: 5;
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
        border-top: 1px solid #f1f5f9; padding: 10px 2px; margin-top: 16px;
}
.amm-bottom__user { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.amm-bottom__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tw-rooyesh-100, #d1fae5); flex: 0 0 auto; }
.amm-bottom__meta { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.amm-bottom__name { font-size: 13px; font-weight: 900; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amm-bottom__grade { font-size: 10.5px; font-weight: 800; color: var(--tw-rooyesh-600, #059669); }
.amm-bottom__more { flex: 0 0 auto; }

/* ---------- صفحهٔ شناور حساب (خروج) ---------- */
.amm-sheet { position: fixed; inset: 0; z-index: 90; }
.amm-sheet[hidden] { display: none; }
.amm-sheet__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
.amm-sheet__card {
        position: absolute; left: 0; right: 0; bottom: 0;
        background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px 22px;
        box-shadow: 0 -12px 40px -12px rgba(15, 23, 42, .35);
        animation: ammSheetUp .28s ease;
}
@keyframes ammSheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.amm-sheet__grip { width: 44px; height: 5px; border-radius: 999px; background: #e2e8f0; margin: 2px auto 12px; }
.amm-sheet__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.amm-sheet__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tw-rooyesh-100, #d1fae5); }
.amm-sheet__name { display: block; font-size: 14.5px; font-weight: 900; color: #0f172a; }
.amm-sheet__grade { display: block; font-size: 11px; font-weight: 800; color: var(--tw-rooyesh-600, #059669); margin-top: 2px; }
.amm-sheet__actions { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.amm-sheet__link {
        display: flex; align-items: center; gap: 12px; text-decoration: none;
        padding: 13px 8px; border-radius: 12px;
        font-size: 13.5px; font-weight: 700; color: #1e293b;
        transition: background .15s ease;
}
.amm-sheet__link:hover, .amm-sheet__link:focus-visible { background: #f8fafc; outline: none; }
.amm-sheet__link > i { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--tw-rooyesh-50, #ecfdf5); color: var(--tw-rooyesh-600, #059669); font-size: 14px; }
.amm-sheet__link--danger { color: #dc2626; }
.amm-sheet__link--danger > i { background: #fef2f2; color: #dc2626; }
.amm-sheet__cancel {
        width: 100%; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
        padding: 12px; font-family: inherit; font-size: 13px; font-weight: 800; color: #475569; cursor: pointer;
}

/* ---------- مهمان ---------- */
.amm-guest { flex: 1 1 auto; padding-top: 8px; }
.amm-guest__btn {
        display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
        width: 100%; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
        padding: 16px; font-size: 13px; font-weight: 800; color: #334155;
}
.amm-guest__btn > i { font-size: 17px; color: var(--tw-rooyesh-600, #059669); }
.amm-guest__btn:hover { background: var(--tw-rooyesh-50, #ecfdf5); color: var(--tw-rooyesh-600, #059669); }

/* ---------- پنل شناور «پکیج‌های فعال» (بند ۵ — هم‌الگوی پنل اعلان‌ها) ---------- */
.amm-overlay {
        position: fixed; inset: 0; z-index: 95; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px);
}
.amm-overlay[hidden], .amm-pkgsheet[hidden] { display: none; }
.amm-pkgsheet {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
        background: #fff; border-radius: 22px 22px 0 0; overflow: hidden;
        box-shadow: 0 -12px 40px -12px rgba(15, 23, 42, .35);
        animation: ammSheetUp .28s ease;
}
.amm-pkgsheet__head {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: 14px 16px; border-bottom: 1px solid #f1f5f9; background: #f8fafc;
}
.amm-pkgsheet__t { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; color: #0f172a; }
.amm-pkgsheet__t > i { color: #059669; }
.amm-pkgsheet__body { padding: 14px 16px 22px; max-height: 60vh; overflow-y: auto; }
.amm-pkgsheet__empty { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; color: #64748b; line-height: 2; }
.amm-pkgsheet__buy {
        display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
        background: linear-gradient(135deg, #059669, #10b981); color: #fff; border-radius: 14px;
        padding: 14px; font-size: 13px; font-weight: 900;
        box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .55);
}
.amm-pkgsheet__list { display: flex; flex-direction: column; gap: 8px; }
.amm-pkgsheet__item {
        display: flex; align-items: center; gap: 12px; text-decoration: none;
        background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 13px 14px;
        font-size: 13px; font-weight: 800; color: #1e293b;
        transition: border-color .15s ease, background .15s ease;
}
.amm-pkgsheet__item:hover, .amm-pkgsheet__item:focus-visible { border-color: #a7f3d0; background: #ecfdf5; outline: none; }
.amm-pkgsheet__item > i:first-child { font-size: 16px; color: #059669; flex: 0 0 auto; }
.amm-pkgsheet__itemt { flex: 1; min-width: 0; }
.amm-pkgsheet__go { font-size: 11px; color: #94a3b8; }
