#navbar-toggle {
    overflow: visible;
}

#MessagesToggleBtn,
#ActivityToggleBtn,
#cartSidebarBtn {
    overflow: visible !important;
}

.header-icon-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    left: auto !important;
    transform: none !important;
    z-index: 30;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e11d48;
    color: #fff !important;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.header-icon-badge[hidden] {
    display: none !important;
}

#navbar-toggle[aria-expanded="true"] #header-menu-notif-count {
    display: none !important;
}

@media (min-width: 1200px) {
    #header-menu-notif-count {
        display: none !important;
    }
}

#ActivityToggleBtn {
    border-radius: 12px;
    padding: 6px 9px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    backdrop-filter: blur(10px);
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(49, 160, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

#ActivityToggleBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 160, 255, 0.3);
    border-color: rgba(49, 160, 255, 0.4);
}

#ActivityToggleBtn i {
    color: rgba(108, 117, 125, 0.9);
    transition: transform 0.3s ease;
}

#ActivityToggleBtn:hover i {
    transform: scale(1.15);
    color: #0066ff;
}

html.dark-mode #ActivityToggleBtn {
    background: var(--pt-surface-2) !important;
    border-color: var(--pt-border);
    box-shadow: none;
}

html.dark-mode #ActivityToggleBtn i {
    color: rgba(108, 117, 125, 0.9) !important;
}

.navbar-list > .nav-item.lbrt3 {
    position: relative !important;
    overflow: visible !important;
}

.navbar-list > .nav-item.lbrt3 > #message-count.header-icon-badge {
    top: 0 !important;
    right: 0 !important;
}

.iq-navbar .navbar-collapse,
.iq-navbar .navbar-list {
    overflow: visible !important;
}

#messagesBox,
#activityBox {
    display: none;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 9999;
    padding: 10px 0 0 0;
    width: 450px;
    max-width: min(450px, calc(100vw - 24px));
    max-height: min(70vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.13);
}

#activityBox {
    overflow: hidden;
    display: none;
    padding-bottom: 0;
}

#activityBox .activity-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: min(52vh, 380px);
}

#activityBox .activity-foot {
    flex-shrink: 0;
    position: relative;
    bottom: auto;
    z-index: 2;
    padding: 10px 16px 12px;
    background: #fff;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 599.98px) {
    #messagesBox,
    #activityBox {
        width: 315px;
    }
}

#activityBox .activity-head {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
    padding: 4px 20px 8px;
}

#activityBox .activity-item {
    text-decoration: none;
    color: inherit;
}

#activityBox a.activity-item:hover .tn-title {
    color: #3a57e8;
}

#activityBox .activity-ico {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #3a57e8;
    font-size: 14px;
    margin-left: 10px;
}

#activityBox .tn-item.is-unread {
    background: #f8fafc;
    border-radius: 12px;
}

#activityBox .tn-item.is-unread .tn-title::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    margin-bottom: 1px;
    border-radius: 50%;
    background: #ef4444;
    vertical-align: middle;
}

#activityBox .activity-show-all {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #3a57e8;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

#activityBox .activity-show-all:hover {
    background: #2f48c4;
    color: #fff !important;
}

html.dark-mode #activityBox .activity-foot {
    background: var(--pt-surface-1, #1e293b);
    border-top-color: var(--pt-border, #334155);
}
