/* ==========================================================================
   Mobile bottom navigation + account panel (elco-shop style, IranSirk colors)
   ========================================================================== */

@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1035;
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        gap: 0;
        min-height: 4.15rem;
        padding: 0 0.15rem;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #ffffff;
        border-top: 1px solid rgba(51, 153, 221, 0.22);
        box-shadow:
            0 -6px 28px rgba(44, 62, 80, 0.1),
            0 -1px 0 rgba(51, 153, 221, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-bottom-nav__item {
        flex: 1 1 0;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        min-width: 0;
        min-height: 3.85rem;
        padding: 0.35rem 0.15rem 0.4rem;
        border: none;
        background: transparent;
        color: #6b7a94;
        text-decoration: none;
        font-family: inherit;
        font-size: clamp(0.55rem, 2.4vw, 0.66rem);
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        cursor: pointer;
        transition: color 0.22s ease;
        -webkit-tap-highlight-color: transparent;
        appearance: none;
        -webkit-appearance: none;
    }

    .mobile-bottom-nav__icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        overflow: visible;
        font-size: 1.28rem;
        transition: filter 0.22s ease, transform 0.22s ease;
    }

    .mobile-bottom-nav__label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:focus-visible {
        color: #2477b0;
        outline: none;
    }

    .mobile-bottom-nav__item.is-active {
        color: var(--tiwall-blue, #3399dd);
    }

    .mobile-bottom-nav__item.is-active:not(.mobile-bottom-nav__item--home)::before {
        content: "";
        position: absolute;
        top: 0.28rem;
        left: 50%;
        transform: translateX(-50%);
        width: 1.05rem;
        height: 0.16rem;
        border-radius: 999px;
        background: var(--tiwall-blue, #3399dd);
        box-shadow: 0 0 8px rgba(51, 153, 221, 0.35);
    }

    .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon-wrap {
        filter: drop-shadow(0 0 8px rgba(51, 153, 221, 0.4));
    }

    /* Home FAB — raised center */
    .mobile-bottom-nav__item--home {
        justify-content: flex-end;
        padding-bottom: 0.35rem;
        z-index: 1;
    }

    .mobile-bottom-nav__fab {
        display: inline-grid;
        place-items: center;
        width: 3.35rem;
        height: 3.35rem;
        margin-top: -1.55rem;
        margin-bottom: 0.15rem;
        border-radius: 50%;
        color: #fff;
        font-size: 1.35rem;
        background: linear-gradient(145deg, #4db0ea 0%, #3399dd 48%, #2477b0 100%);
        border: 3px solid #fff;
        box-shadow:
            0 8px 20px rgba(51, 153, 221, 0.42),
            0 2px 6px rgba(44, 62, 80, 0.12);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-bottom-nav__item--home:hover .mobile-bottom-nav__fab,
    .mobile-bottom-nav__item--home:focus-visible .mobile-bottom-nav__fab {
        transform: translateY(-2px) scale(1.04);
        box-shadow:
            0 12px 24px rgba(51, 153, 221, 0.48),
            0 2px 6px rgba(44, 62, 80, 0.14);
    }

    .mobile-bottom-nav__item--home.is-active .mobile-bottom-nav__fab {
        box-shadow:
            0 0 0 3px rgba(51, 153, 221, 0.22),
            0 10px 22px rgba(51, 153, 221, 0.5);
    }

    .mobile-bottom-nav__item--home .mobile-bottom-nav__label {
        color: inherit;
        font-weight: 800;
    }

    body.has-mobile-bottom-nav #footer {
        padding-bottom: calc(5.1rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav .pwa-install-banner {
        bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    }

    /* Call sheet */
    .mobile-bottom-callsheet {
        position: fixed;
        inset: 0;
        z-index: 1090;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        pointer-events: none;
        visibility: hidden;
    }

    .mobile-bottom-callsheet.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .mobile-bottom-callsheet__backdrop {
        position: absolute;
        inset: 0;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(8, 14, 28, 0.48);
        opacity: 0;
        transition: opacity 0.28s ease;
        cursor: pointer;
    }

    .mobile-bottom-callsheet.is-open .mobile-bottom-callsheet__backdrop {
        opacity: 1;
    }

    .mobile-bottom-callsheet__panel {
        position: relative;
        z-index: 1;
        width: min(100%, 420px);
        margin: 0 auto;
        padding: 0.55rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
        background: #fff;
        box-shadow: 0 -12px 40px rgba(44, 62, 80, 0.18);
        transform: translateY(110%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        touch-action: none;
    }

    .mobile-bottom-callsheet.is-open .mobile-bottom-callsheet__panel {
        transform: translateY(0);
    }

    .mobile-bottom-callsheet.is-dragging .mobile-bottom-callsheet__panel {
        transition: none;
    }

    .mobile-bottom-callsheet.is-closing .mobile-bottom-callsheet__panel {
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .mobile-bottom-callsheet__handle {
        width: 2.5rem;
        height: 0.26rem;
        margin: 0.2rem auto 0.75rem;
        border-radius: 999px;
        background: rgba(44, 62, 80, 0.18);
        cursor: grab;
        touch-action: none;
    }

    .mobile-bottom-callsheet.is-dragging .mobile-bottom-callsheet__handle {
        cursor: grabbing;
    }

    .mobile-bottom-callsheet__title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: #2c3e50;
        text-align: center;
        cursor: grab;
        user-select: none;
        touch-action: none;
    }

    .mobile-bottom-callsheet__hint {
        margin: 0.35rem 0 0.9rem;
        font-size: 0.78rem;
        color: #6c757d;
        text-align: center;
    }

    .mobile-bottom-callsheet__list {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .mobile-bottom-callsheet__btn {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        min-height: 3.15rem;
        padding: 0.7rem 0.9rem;
        border-radius: 14px;
        border: 1.5px solid rgba(51, 153, 221, 0.28);
        background: linear-gradient(180deg, #f5fbff, #fff);
        color: #2c3e50;
        text-decoration: none;
        font-weight: 700;
        transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    }

    .mobile-bottom-callsheet__btn:active {
        transform: scale(0.98);
    }

    .mobile-bottom-callsheet__btn-icon {
        display: inline-grid;
        place-items: center;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 50%;
        background: rgba(51, 153, 221, 0.12);
        color: #3399dd;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .mobile-bottom-callsheet__btn-num {
        flex: 1;
        font-size: 1.05rem;
        letter-spacing: 0.03em;
        font-weight: 800;
        color: #1e2a3d;
    }

    .mobile-bottom-callsheet__btn-cta {
        font-size: 0.78rem;
        font-weight: 800;
        color: #3399dd;
    }

    .mobile-bottom-callsheet__cancel {
        display: block;
        width: 100%;
        margin-top: 0.75rem;
        min-height: 2.75rem;
        border-radius: 12px;
        border: 1px solid rgba(44, 62, 80, 0.14);
        background: #f7f9fc;
        color: #475569;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
    }

    body.mobile-bottom-callsheet-open {
        overflow: hidden;
    }

    /* Account panel — از بالا به پایین */
    .mobile-account-panel {
        position: fixed;
        inset: 0;
        z-index: 1085;
        pointer-events: none;
        visibility: hidden;
    }

    .mobile-account-panel.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .mobile-account-panel__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(8, 14, 28, 0.52);
        opacity: 0;
        transition: opacity 0.28s ease;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .mobile-account-panel.is-open .mobile-account-panel__backdrop {
        opacity: 1;
    }

    .mobile-account-panel__sheet {
        position: absolute;
        inset-inline: 0;
        top: 0;
        max-height: min(88vh, 640px);
        overflow: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        background: #0f1729;
        border-radius: 0 0 22px 22px;
        box-shadow: 0 16px 44px rgba(26, 42, 58, 0.22);
        transform: translateY(-105%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
        padding-bottom: 0.35rem;
        cursor: grab;
    }

    .mobile-account-panel.is-open .mobile-account-panel__sheet {
        transform: translateY(0);
    }

    .mobile-account-panel.is-dragging .mobile-account-panel__sheet {
        cursor: grabbing;
        transition: none;
    }

    .mobile-account-panel.is-dragging .mobile-account-panel__backdrop {
        transition: none;
    }

    .mobile-account-panel__handle {
        width: 2.6rem;
        height: 0.28rem;
        margin: 0.35rem auto 0.55rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        touch-action: none;
        cursor: grab;
        flex-shrink: 0;
    }

    .mobile-account-panel__hero {
        margin: 0.5rem 1rem 0.85rem;
        padding: 1rem;
        border-radius: 16px;
        background: linear-gradient(135deg, #0f1a32 0%, #162544 100%);
        color: #fff;
        touch-action: none;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
    }

    .mobile-account-panel__profile {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .mobile-account-panel__avatar {
        position: relative;
        display: inline-grid;
        place-items: center;
        width: 52px;
        height: 52px;
        padding: 0;
        appearance: none;
        -webkit-appearance: none;
        border-radius: 50%;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(51, 153, 221, 0.55);
        color: #7ec8f0;
        font-size: 1.35rem;
        overflow: hidden;
        cursor: pointer;
    }

    .mobile-account-panel__avatar.has-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .mobile-account-panel__meta {
        min-width: 0;
    }

    .mobile-account-panel__name {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.3;
        color: #fff;
    }

    .mobile-account-panel__phone,
    .mobile-account-panel__wallet {
        display: block;
        margin-top: 0.15rem;
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.62);
    }

    .mobile-account-panel__quick {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.35rem;
        margin-top: 0.85rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-account-panel__quick-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.32rem;
        min-width: 0;
        padding: 0.42rem 0.2rem;
        border-radius: 12px;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.88);
        transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
    }

    .mobile-account-panel__quick-item:active {
        transform: scale(0.97);
    }

    .mobile-account-panel__quick-item.is-active {
        background: rgba(51, 153, 221, 0.22);
        color: #fff;
    }

    .mobile-account-panel__quick-icon {
        display: inline-grid;
        place-items: center;
        width: 2.15rem;
        height: 2.15rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        font-size: 0.95rem;
        color: #7ec8f0;
    }

    .mobile-account-panel__quick-item.is-active .mobile-account-panel__quick-icon {
        background: rgba(51, 153, 221, 0.28);
        color: #fff;
    }

    .mobile-account-panel__quick-label {
        font-size: 0.58rem;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .mobile-account-panel__grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0 1rem 0.85rem;
    }

    .mobile-account-panel__tile {
        position: relative;
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        min-width: 0;
        min-height: 5.1rem;
        padding: 0.65rem 0.35rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        text-decoration: none;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .mobile-account-panel__tile:active {
        transform: scale(0.98);
    }

    .mobile-account-panel__tile.is-active {
        border-color: rgba(51, 153, 221, 0.4);
        background: rgba(51, 153, 221, 0.12);
        box-shadow: none;
    }

    .mobile-account-panel__tile-icon {
        display: inline-grid;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 12px;
        font-size: 1.1rem;
        color: #3399dd;
        background: rgba(51, 153, 221, 0.12);
    }

    .mobile-account-panel__tile--security .mobile-account-panel__tile-icon {
        color: #c47a2c;
        background: rgba(196, 122, 44, 0.12);
    }

    .mobile-account-panel__tile--affiliate .mobile-account-panel__tile-icon {
        color: #1d9a84;
        background: rgba(29, 154, 132, 0.12);
    }

    .mobile-account-panel__tile--guide .mobile-account-panel__tile-icon {
        color: #5b6fd9;
        background: rgba(91, 111, 217, 0.12);
    }

    .mobile-account-panel__tile--admin .mobile-account-panel__tile-icon {
        color: #7ec8f0;
        background: rgba(51, 153, 221, 0.16);
    }

    .mobile-account-panel__tile-label {
        font-size: 0.68rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        line-height: 1.25;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mobile-account-panel__actions {
        padding: 0.55rem 1rem 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-account-panel__action {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.65rem;
        min-height: 2.85rem;
        padding: 0.72rem 0.95rem;
        border-radius: 12px;
        text-decoration: none;
        font-size: 0.86rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    .mobile-account-panel__action-icon {
        display: inline-grid;
        place-items: center;
        width: 2rem;
        height: 2rem;
        border-radius: 10px;
        flex-shrink: 0;
        font-size: 0.95rem;
    }

    .mobile-account-panel__action-label {
        line-height: 1.2;
        flex: 1;
    }

    .mobile-account-panel__action--logout {
        color: #fecdd3;
        border: 1px solid rgba(248, 113, 113, 0.34);
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.18) 0%, rgba(127, 29, 29, 0.1) 100%);
        box-shadow:
            0 2px 14px rgba(220, 38, 38, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .mobile-account-panel__action--logout .mobile-account-panel__action-icon {
        color: #fda4af;
        background: rgba(69, 10, 22, 0.42);
        border: 1px solid rgba(248, 113, 113, 0.34);
    }

    .mobile-account-panel__action--logout:active {
        transform: scale(0.98);
    }

    body.mobile-account-open {
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .mobile-bottom-nav,
    .mobile-account-panel,
    .mobile-bottom-callsheet {
        display: none !important;
    }
}

/* Desktop / header account dropdown — opens top → bottom */
.header-account {
    position: relative;
}

.header-account .header-account-trigger {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    color: #fff;
    text-align: inherit;
}

.header-account-name,
.header-toolbar .header-account-name,
.header-toolbar-mobile .header-account-name {
    color: #fff;
}

.header-account .header-account-chevron {
    font-size: 0.7rem;
    margin-inline-start: 0.15rem;
    opacity: 0.75;
    transition: transform 0.22s ease;
}

.header-account.is-open .header-account-chevron,
.header-account.show .header-account-chevron {
    transform: rotate(180deg);
}

.header-account-menu.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    /* کمی به چپ تا زیر پروفایل خوش‌فرم‌تر بنشیند */
    inset-inline-end: auto;
    inset-inline-start: 0;
    left: 0;
    right: auto;
    transform: translateX(-0.85rem) !important;
    margin: 0 !important;
    float: none;
    z-index: 1085;
    width: 17.5rem;
    min-width: 17.5rem;
    padding: 0.85rem 0.75rem 0.7rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, #34495e 0%, #2c3e50 55%, #243342 100%);
    backdrop-filter: blur(12px) saturate(1.05);
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(51, 153, 221, 0.12);
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

.header-account.is-open > .header-account-menu,
.header-account.show > .header-account-menu {
    display: block;
    animation: iransirkAccountMenuIn 0.22s ease;
}

@keyframes iransirkAccountMenuIn {
    from {
        opacity: 0;
        transform: translateX(-0.85rem) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-0.85rem) translateY(0);
    }
}

.header-account-menu::before {
    content: "";
    position: absolute;
    inset-inline: 18%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(51, 153, 221, 0.35) 24%,
        rgba(51, 153, 221, 0.85) 50%,
        rgba(51, 153, 221, 0.35) 76%,
        transparent
    );
    pointer-events: none;
}

.header-account-menu > li {
    list-style: none;
}

.header-account-menu__head {
    padding: 0.15rem 0.35rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.45rem;
}

.header-account-menu__profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.15rem 0.2rem;
    direction: rtl;
}

.header-account-menu__avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    line-height: 0;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(51, 153, 221, 0.55);
    color: #7ec8f0;
    font-size: 1.15rem;
    box-shadow: 0 0 12px rgba(51, 153, 221, 0.2);
    overflow: hidden;
    cursor: pointer;
}

.header-account-menu__avatar.has-photo img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    display: block;
    object-fit: cover !important;
    object-position: center center !important;
}

.header-account-menu__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.header-account-menu__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-menu__phone {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.header-account-menu__divider {
    margin: 0.35rem 0.25rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.header-account-menu__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.65rem;
    border-radius: 11px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
    direction: rtl;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-account-menu__link:hover,
.header-account-menu__link:focus-visible {
    color: #fff;
    background: rgba(51, 153, 221, 0.14);
    border-color: rgba(51, 153, 221, 0.22);
    transform: none;
}

.header-account-menu__link.is-active {
    color: #fff;
    background: rgba(51, 153, 221, 0.18);
    border-color: rgba(51, 153, 221, 0.45);
    box-shadow: 0 0 0 1px rgba(51, 153, 221, 0.15);
}

.header-account-menu__icon {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 8px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #7ec8f0;
    font-size: 1rem;
}

.header-account-menu__link:hover .header-account-menu__icon,
.header-account-menu__link:focus-visible .header-account-menu__icon,
.header-account-menu__link.is-active .header-account-menu__icon {
    border: none;
    box-shadow: none;
    color: #3399dd;
}

.header-account-menu__label {
    flex: 1;
    min-width: 0;
}

.header-account-menu__chevron {
    display: none;
}

.header-account-menu__link:hover .header-account-menu__chevron,
.header-account-menu__link:focus-visible .header-account-menu__chevron {
    opacity: 0.75;
    transform: translateX(-2px);
}

.header-account-menu__link--admin {
    color: rgba(126, 200, 240, 0.98);
}

.header-account-menu__link--logout {
    justify-content: center;
    width: calc(100% - 0.4rem);
    margin: 0.55rem 0.2rem 0.15rem;
    min-height: 2.65rem;
    padding: 0.7rem 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fecdd3;
    border: 1px solid rgba(248, 113, 113, 0.34);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.22) 0%, rgba(127, 29, 29, 0.16) 100%);
    box-shadow:
        0 2px 14px rgba(220, 38, 38, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-account-menu__link--logout .header-account-menu__icon {
    color: #fda4af;
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(69, 10, 22, 0.42);
}

.header-account-menu__link--logout .header-account-menu__chevron {
    display: none;
}

.header-account-menu__link--logout:hover,
.header-account-menu__link--logout:focus-visible {
    color: #ffe4e6;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.28) 0%, rgba(127, 29, 29, 0.18) 100%);
    transform: none;
}

/* موبایل: منوی هدر حساب را مخفی کن — پنل پایین جایگزین است */
@media (max-width: 991.98px) {
    .header-toolbar-mobile .header-account > .header-account-menu {
        display: none !important;
    }
}
