/* Web Push — سایدبار (زیر بروزرسانی نرم‌افزار) */
.menu-list a.push-sidebar-nav {
    position: relative;
}

.menu-list a.push-sidebar-nav .menu-icon-circle {
    border: none;
    background-image: linear-gradient(145deg, #90a4ae 0%, #607d8b 52%, #546e7a 100%);
    box-shadow: 0 3px 10px rgba(96, 125, 139, 0.32);
}

.menu-list a.push-sidebar-nav > span.push-sidebar-nav__label {
    display: block;
    flex: 1;
    min-width: 0;
    padding-right: 0;
}

.menu-list a.push-sidebar-nav.push-sidebar-nav--active {
    padding-left: 3.5rem;
}

.menu-list a.push-sidebar-nav.push-sidebar-nav--active .menu-icon-circle {
    box-shadow:
        0 0 0 2px rgba(96, 125, 139, 0.5),
        0 4px 14px rgba(84, 110, 122, 0.38);
}

.menu-list a.push-sidebar-nav.push-sidebar-nav--denied .menu-icon-circle {
    opacity: 0.55;
}

.menu-list a.push-sidebar-nav.push-sidebar-nav--opted-out .menu-icon-circle {
    opacity: 0.72;
    background-image: linear-gradient(145deg, #b0bec5 0%, #90a4ae 52%, #78909c 100%);
    box-shadow: 0 2px 8px rgba(120, 144, 156, 0.28);
}

.menu-list a.push-sidebar-nav.push-sidebar-nav--opted-out > span.push-sidebar-nav__label {
    opacity: 0.88;
}

.menu-list a.push-sidebar-nav > span.push-sidebar-nav__badge {
    position: absolute;
    left: 1.1rem;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.2rem 0.45rem 0.2rem 0.36rem;
    margin-block: auto;
    margin-inline: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #78909c 0%, #607d8b 100%) !important;
    color: #fff !important;
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(96, 125, 139, 0.35);
    pointer-events: none;
}

.menu-list a.push-sidebar-nav > span.push-sidebar-nav__badge[hidden] {
    display: none !important;
}

.menu-list a.push-sidebar-nav .push-sidebar-nav__badge-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .menu-list a.push-sidebar-nav .push-sidebar-nav__badge-dot {
        animation: none;
    }
}

/* ——— فعال‌سازی / مدیریت (bottom sheet) ——— */
#menu-push-enable.push-prompt-sheet.offcanvas {
    max-height: min(82vh, 400px);
}

#menu-push-enable.push-prompt-sheet .theme-bottom-sheet__inner {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}

#menu-push-enable.push-prompt-sheet .theme-bottom-sheet__head {
    margin-bottom: 0.85rem;
    padding-bottom: 0;
}

#menu-push-enable.push-prompt-sheet .theme-bottom-sheet__title-head-split {
    gap: 14px;
}

#menu-push-enable.push-prompt-sheet .theme-bottom-sheet__kicker {
    margin-bottom: 0.12rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #0f172a;
}

#menu-push-enable.push-prompt-sheet .theme-bottom-sheet__title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    color: #64748b;
    letter-spacing: 0;
}

.theme-dark #menu-push-enable.push-prompt-sheet .theme-bottom-sheet__kicker {
    color: #f1f5f9;
}

.theme-dark #menu-push-enable.push-prompt-sheet .theme-bottom-sheet__title {
    color: #94a3b8;
}

.push-prompt-sheet__logo-wrap {
    position: relative;
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    margin-inline-start: 2px;
}

.push-prompt-sheet__logo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.push-prompt-sheet__logo-badge {
    position: absolute;
    inset-inline-end: -5px;
    inset-block-end: -5px;
    width: 1.15rem;
    height: 1.15rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
    font-size: 0.62rem;
    line-height: 1;
}

.push-prompt-sheet__logo-badge .ph-duotone {
    font-size: 0.7rem;
}

.push-prompt-sheet__body {
    margin-bottom: 0.85rem;
}

.push-prompt-sheet__lead {
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #64748b;
}

.push-prompt-sheet__lead strong {
    color: #334155;
    font-weight: 700;
}

.push-prompt-sheet__prefs {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
}

.push-prompt-sheet__prefs-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.push-prompt-sheet__pref {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.push-prompt-sheet__status--muted {
    background: rgba(120, 144, 156, 0.12);
    border: 1px solid rgba(120, 144, 156, 0.22);
}

.push-prompt-sheet__status--muted .push-prompt-sheet__status-icon {
    color: #607d8b;
}

.theme-dark .push-prompt-sheet__status--muted {
    background: rgba(144, 164, 174, 0.14);
    border-color: rgba(144, 164, 174, 0.28);
}

.push-prompt-sheet__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.push-prompt-sheet__status-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #16a34a;
    font-size: 1.05rem;
    line-height: 1;
}

.push-prompt-sheet__status-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #15803d;
    line-height: 1.35;
}

.push-prompt-sheet__lead--warn {
    color: #64748b;
}

.theme-dark .push-prompt-sheet__lead {
    color: #94a3b8;
}

.theme-dark .push-prompt-sheet__lead strong {
    color: #e2e8f0;
}

.theme-dark .push-prompt-sheet__status {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(74, 222, 128, 0.28);
}

.theme-dark .push-prompt-sheet__status-icon {
    color: #4ade80;
}

.theme-dark .push-prompt-sheet__status-label {
    color: #86efac;
}

.push-prompt-sheet__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.theme-dark .push-prompt-sheet__actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.push-prompt-sheet__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0 !important;
    min-height: 2.75rem;
    padding-block: 0.6rem;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.push-prompt-sheet__cta--danger {
    background: #fff !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
    box-shadow: none;
}

.push-prompt-sheet__cta--danger:hover,
.push-prompt-sheet__cta--danger:focus-visible {
    color: #b91c1c !important;
    background: rgba(220, 38, 38, 0.06) !important;
    transform: none;
    box-shadow: none;
}

.theme-dark .push-prompt-sheet__cta--danger {
    background: rgba(220, 38, 38, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #fca5a5 !important;
}

.push-prompt-sheet__cta .ph-duotone {
    font-size: 1rem;
}

.push-prompt-sheet__cta:hover,
.push-prompt-sheet__cta:focus-visible {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42);
}

.push-prompt-sheet__cta:active {
    transform: translateY(0);
}

.push-prompt-sheet__cta:disabled {
    opacity: 0.72;
    transform: none;
    cursor: wait;
}

.push-prompt-sheet__later {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.push-prompt-sheet__later:hover,
.push-prompt-sheet__later:focus-visible {
    color: #64748b;
    background: rgba(15, 23, 42, 0.04);
}

.theme-dark .push-prompt-sheet__later {
    color: #64748b;
}

.theme-dark .push-prompt-sheet__later:hover,
.theme-dark .push-prompt-sheet__later:focus-visible {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    .push-prompt-sheet__cta {
        transition: none;
    }
}
