.user-notifications {
    display: inline-flex;
    align-items: center;
}

.user-notifications-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #756f72;
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    line-height: 1;
}

.user-notifications-trigger:hover,
.user-notifications-trigger:focus {
    color: #11408a;
}

.user-notifications-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ff6b35;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    line-height: 13px;
    text-align: center;
}

.user-notifications-menu {
    width: min(380px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    margin-top: 10px !important;
}

.user-notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    color: #11408a;
    border-bottom: 1px solid #edf0f5;
}

.user-notifications-head strong,
.user-notifications-head span {
    display: block;
}

.user-notifications-head strong {
    font-size: .98rem;
}

.user-notifications-head span {
    margin-top: 2px;
    color: #7b8494;
    font-size: .7rem;
}

.user-notifications-head > i {
    color: #ff6b35;
}

.user-notifications-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    background: #fafbfc;
}

.user-notifications-stats a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
}

.user-notifications-stats a:hover {
    border-color: #ffb627;
}

.user-notifications-stats .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
}

.user-notifications-stats .icon.orange { color: #d97706; background: #fff7ed; }
.user-notifications-stats .icon.green { color: #16a34a; background: #ecfdf5; }
.user-notifications-stats .icon.purple { color: #7c3aed; background: #f5f3ff; }
.user-notifications-stats .icon.blue { color: #2563eb; background: #eff6ff; }

.user-notifications-stats small,
.user-notifications-stats strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-notifications-stats small {
    color: #7b8494;
    font-size: .64rem;
}

.user-notifications-stats strong {
    margin-top: 1px;
    color: #11408a;
    font-size: .76rem;
}

.user-notifications-list {
    max-height: 330px;
    overflow-y: auto;
}

.user-notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
}

.user-notification-item:hover {
    background: #f8fafc;
}

.user-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 50%;
}

.user-notification-icon.orange { color: #d97706; background: #fff7ed; }
.user-notification-icon.green { color: #16a34a; background: #ecfdf5; }
.user-notification-icon.purple { color: #7c3aed; background: #f5f3ff; }
.user-notification-icon.blue { color: #2563eb; background: #eff6ff; }
.user-notification-icon.gold { color: #b7791f; background: #fffbeb; }
.user-notification-icon.red { color: #dc2626; background: #fef2f2; }

.user-notification-copy {
    display: block;
    min-width: 0;
    flex: 1;
}

.user-notification-copy strong,
.user-notification-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-notification-copy strong {
    color: #26344d;
    font-size: .78rem;
}

.user-notification-copy small {
    margin-top: 2px;
    color: #7b8494;
    font-size: .68rem;
}

.user-notification-arrow {
    color: #a4adba;
    font-size: .7rem;
}

.user-notifications-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 14px;
    color: #7b8494;
    font-size: .78rem;
}

.user-notifications-empty i {
    color: #16a34a;
    font-size: 1rem;
}

.user-notifications-footer {
    display: flex;
    justify-content: space-between;
    padding: 11px 14px;
    background: #fafbfc;
}

.user-notifications-footer a {
    color: #11408a;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}

.user-notifications-footer a:hover {
    color: #ff6b35;
}

@media (max-width: 575.98px) {
    .user-notifications-menu {
        position: fixed !important;
        top: 62px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto;
        margin-top: 0 !important;
    }
}
