/**
 * JetEngine Profile Menu — עיצוב אזור אישי
 * Scoped ל-context--account_page בלבד — לא נוגע ב-User Profile Menu.
 */

.jet-profile-menu.context--account_page {
    --fz-menu-green: #8BC643;
    --fz-menu-text: #202041;
    --fz-menu-muted: #818292;
    --fz-menu-active-bg: #f5f7f2;
    --fz-menu-icon-size: 22px;

    direction: rtl;
    font-family: var(--e-global-typography-primary-font-family, "פולין"), sans-serif;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.jet-profile-menu.context--account_page .jet-profile-menu__item {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    list-style: none;
}

.jet-profile-menu.context--account_page .jet-profile-menu__item-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--fz-menu-text);
    font-family: var(--e-global-typography-primary-font-family, "פולין"), sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.jet-profile-menu.context--account_page .jet-profile-menu__item-link i,
.jet-profile-menu.context--account_page .jet-profile-menu__item-link .fa,
.jet-profile-menu.context--account_page .jet-profile-menu__item-link .fas,
.jet-profile-menu.context--account_page .jet-profile-menu__item-link .fa-solid {
    display: none !important;
}

.jet-profile-menu.context--account_page .jet-profile-menu__item-link::before {
    content: '';
    flex-shrink: 0;
    width: var(--fz-menu-icon-size);
    height: var(--fz-menu-icon-size);
    background-color: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

/* עריכת פרטים */
.jet-profile-menu.context--account_page .jet-profile-menu__item-link[href*='edit-profile']::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 20h9' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 20h9' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* המודעות שלי */
.jet-profile-menu.context--account_page .jet-profile-menu__item-link[href*='my-posts']::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='4' cy='6' r='1' fill='%23000'/%3E%3Ccircle cx='4' cy='12' r='1' fill='%23000'/%3E%3Ccircle cx='4' cy='18' r='1' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='4' cy='6' r='1' fill='%23000'/%3E%3Ccircle cx='4' cy='12' r='1' fill='%23000'/%3E%3Ccircle cx='4' cy='18' r='1' fill='%23000'/%3E%3C/svg%3E");
}

/* מודעה חדשה */
.jet-profile-menu.context--account_page .jet-profile-menu__item-link[href*='add-post']::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* מודעות לא פעילות */
.jet-profile-menu.context--account_page .jet-profile-menu__item-link[href*='draft-posts']::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M7.5 7.5l9 9' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M7.5 7.5l9 9' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* פרטי מנוי */
.jet-profile-menu.context--account_page .jet-profile-menu__item-link[href*='subscription-details']::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M3 10h18' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M3 10h18' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* חיובים ותשלומים */
.jet-profile-menu.context--account_page .jet-profile-menu__item-link[href*='charges-and-payments']::before,
.jet-profile-menu.context--account_page .jet-profile-menu__item-link[href*='Charges-and-payments']::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 7h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M3 7l9 5 9-5' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='17' cy='13' r='1' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 7h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M3 7l9 5 9-5' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='17' cy='13' r='1' fill='%23000'/%3E%3C/svg%3E");
}

/* מצב פעיל — Jet מוסיף .is-active על ה-item */
.jet-profile-menu.context--account_page .jet-profile-menu__item.is-active .jet-profile-menu__item-link {
    background: var(--fz-menu-active-bg);
    color: var(--fz-menu-green);
    font-weight: 600;
}

.jet-profile-menu.context--account_page .jet-profile-menu__item:not(.is-active) .jet-profile-menu__item-link:hover,
.jet-profile-menu.context--account_page .jet-profile-menu__item:not(.is-active) .jet-profile-menu__item-link:focus-visible {
    background: var(--fz-menu-active-bg);
    color: var(--fz-menu-green);
    outline: none;
}

/* פריסות רספונסיביות של Jet — שומרים על העיצוב */
@media (min-width: 768px) and (max-width: 1024px) {
    .jet-profile-menu.context--account_page.layout-tablet--horizontal {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .jet-profile-menu.context--account_page.layout-tablet--horizontal .jet-profile-menu__item-link {
        width: auto;
        padding: 12px 14px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .jet-profile-menu.context--account_page.layout-mobile--vertical .jet-profile-menu__item-link {
        padding: 13px 14px;
        font-size: 15px;
    }
}
